org.apache.activeio.xnet.hba
Class ServiceAccessController
java.lang.Object
org.apache.activeio.xnet.hba.ServiceAccessController
- All Implemented Interfaces:
- ServerService, SocketService
public class ServiceAccessController
- extends java.lang.Object
- implements ServerService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceAccessController
public ServiceAccessController(ServerService next)
ServiceAccessController
public ServiceAccessController(java.lang.String name,
ServerService next,
IPAddressPermission[] ipAddressMasks)
service
public void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
- Specified by:
service
in interface SocketService
- Throws:
ServiceException
java.io.IOException
getAllowHosts
public IPAddressPermission[] getAllowHosts()
setAllowHosts
public void setAllowHosts(IPAddressPermission[] ipAddressMasks)
checkHostsAuthorization
public void checkHostsAuthorization(java.net.InetAddress clientAddress,
java.net.InetAddress serverAddress)
throws java.lang.SecurityException
- Throws:
java.lang.SecurityException
init
public void init(java.util.Properties props)
throws java.lang.Exception
- Specified by:
init
in interface ServerService
- Throws:
java.lang.Exception
start
public void start()
throws ServiceException
- Specified by:
start
in interface ServerService
- Throws:
ServiceException
stop
public void stop()
throws ServiceException
- Specified by:
stop
in interface ServerService
- Throws:
ServiceException
getName
public java.lang.String getName()
- Description copied from interface:
SocketService
- Gets the name of the service.
Used for display purposes only
- Specified by:
getName
in interface SocketService
getIP
public java.lang.String getIP()
- Description copied from interface:
ServerService
- Gets the ip number that the
daemon is listening on.
- Specified by:
getIP
in interface ServerService
getPort
public int getPort()
- Description copied from interface:
ServerService
- Gets the port number that the
daemon is listening on.
- Specified by:
getPort
in interface ServerService
Copyright © 2005-2011. All Rights Reserved.