| java.lang.Object java.util.EventObject org.netbeans.modules.httpserver.GrantAccessEvent
GrantAccessEvent | public class GrantAccessEvent extends EventObject (Code) | | This event is sent to access listeners to
ask them, whether the access to specified resource is
allowed.
author: Jaroslav Tulach |
GrantAccessEvent | GrantAccessEvent(Object source, InetAddress clientAddress, String resource)(Code) | | Creates new AccessEvent. Used only in this package by
the HttpServer to create new access event when a resource
is requested.
Parameters: httpServer - the server |
getClientAddress | public InetAddress getClientAddress()(Code) | | The Inet address that initiated the connection.
the inet address |
getResource | public String getResource()(Code) | | The resource to which access is requested
|
grantAccess | public void grantAccess()(Code) | | Allows access. The listener can use this method to grant
access the client and resource.
|
isGranted | boolean isGranted()(Code) | | Getter to test whether the access has been granted.
true if a listener granted the access |
|
|