org.apache.activeio.xnet.hba
public class ServiceAccessController extends java.lang.Object implements ServerService
Constructor and Description |
---|
ServiceAccessController(ServerService next) |
ServiceAccessController(java.lang.String name,
ServerService next,
IPAddressPermission[] ipAddressMasks) |
Modifier and Type | Method and Description |
---|---|
void |
checkHostsAuthorization(java.net.InetAddress clientAddress,
java.net.InetAddress serverAddress) |
IPAddressPermission[] |
getAllowHosts() |
java.lang.String |
getIP()
Gets the ip number that the
daemon is listening on.
|
java.lang.String |
getName()
Gets the name of the service.
|
int |
getPort()
Gets the port number that the
daemon is listening on.
|
void |
init(java.util.Properties props) |
void |
service(java.net.Socket socket) |
void |
setAllowHosts(IPAddressPermission[] ipAddressMasks) |
void |
start() |
void |
stop() |
public ServiceAccessController(ServerService next)
public ServiceAccessController(java.lang.String name, ServerService next, IPAddressPermission[] ipAddressMasks)
public void service(java.net.Socket socket) throws ServiceException, java.io.IOException
service
in interface SocketService
ServiceException
java.io.IOException
public IPAddressPermission[] getAllowHosts()
public void setAllowHosts(IPAddressPermission[] ipAddressMasks)
public void checkHostsAuthorization(java.net.InetAddress clientAddress, java.net.InetAddress serverAddress) throws java.lang.SecurityException
java.lang.SecurityException
public void init(java.util.Properties props) throws java.lang.Exception
init
in interface ServerService
java.lang.Exception
public void start() throws ServiceException
start
in interface ServerService
ServiceException
public void stop() throws ServiceException
stop
in interface ServerService
ServiceException
public java.lang.String getName()
SocketService
getName
in interface SocketService
public java.lang.String getIP()
ServerService
getIP
in interface ServerService
public int getPort()
ServerService
getPort
in interface ServerService
Copyright © 2005-2014. All Rights Reserved.