Package org.apache.activeio.xnet.hba
Class ServiceAccessController
java.lang.Object
org.apache.activeio.xnet.hba.ServiceAccessController
- All Implemented Interfaces:
ServerService,SocketService
-
Constructor Summary
ConstructorsConstructorDescriptionServiceAccessController(String name, ServerService next, IPAddressPermission[] ipAddressMasks) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckHostsAuthorization(InetAddress clientAddress, InetAddress serverAddress) getIP()Gets the ip number that the daemon is listening on.getName()Gets the name of the service.intgetPort()Gets the port number that the daemon is listening on.voidinit(Properties props) voidvoidsetAllowHosts(IPAddressPermission[] ipAddressMasks) voidstart()voidstop()
-
Constructor Details
-
ServiceAccessController
-
ServiceAccessController
public ServiceAccessController(String name, ServerService next, IPAddressPermission[] ipAddressMasks)
-
-
Method Details
-
service
- Specified by:
servicein interfaceSocketService- Throws:
ServiceExceptionIOException
-
getAllowHosts
-
setAllowHosts
-
checkHostsAuthorization
public void checkHostsAuthorization(InetAddress clientAddress, InetAddress serverAddress) throws SecurityException - Throws:
SecurityException
-
init
- Specified by:
initin interfaceServerService- Throws:
Exception
-
start
- Specified by:
startin interfaceServerService- Throws:
ServiceException
-
stop
- Specified by:
stopin interfaceServerService- Throws:
ServiceException
-
getName
Description copied from interface:SocketServiceGets the name of the service. Used for display purposes only- Specified by:
getNamein interfaceSocketService
-
getIP
Description copied from interface:ServerServiceGets the ip number that the daemon is listening on.- Specified by:
getIPin interfaceServerService
-
getPort
public int getPort()Description copied from interface:ServerServiceGets the port number that the daemon is listening on.- Specified by:
getPortin interfaceServerService
-