public class ServiceAccessController extends Object implements ServerService
| Constructor and Description |
|---|
ServiceAccessController(ServerService next) |
ServiceAccessController(String name,
ServerService next,
IPAddressPermission[] ipAddressMasks) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkHostsAuthorization(InetAddress clientAddress,
InetAddress serverAddress) |
IPAddressPermission[] |
getAllowHosts() |
String |
getIP()
Gets the ip number that the
daemon is listening on.
|
String |
getName()
Gets the name of the service.
|
int |
getPort()
Gets the port number that the
daemon is listening on.
|
void |
init(Properties props) |
void |
service(Socket socket) |
void |
setAllowHosts(IPAddressPermission[] ipAddressMasks) |
void |
start() |
void |
stop() |
public ServiceAccessController(ServerService next)
public ServiceAccessController(String name, ServerService next, IPAddressPermission[] ipAddressMasks)
public void service(Socket socket) throws ServiceException, IOException
service in interface SocketServiceServiceExceptionIOExceptionpublic IPAddressPermission[] getAllowHosts()
public void setAllowHosts(IPAddressPermission[] ipAddressMasks)
public void checkHostsAuthorization(InetAddress clientAddress, InetAddress serverAddress) throws SecurityException
SecurityExceptionpublic void init(Properties props) throws Exception
init in interface ServerServiceExceptionpublic void start()
throws ServiceException
start in interface ServerServiceServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic String getName()
SocketServicegetName in interface SocketServicepublic String getIP()
ServerServicegetIP in interface ServerServicepublic int getPort()
ServerServicegetPort in interface ServerServiceCopyright © 2005–2019. All rights reserved.