public class ServiceDaemon extends Object implements ServerService
| Modifier and Type | Class and Description |
|---|---|
class |
ServiceDaemon.AddressMonitor |
class |
ServiceDaemon.SocketMonitor |
| Constructor and Description |
|---|
ServiceDaemon(ServerService next) |
ServiceDaemon(ServerService next,
int port,
String ip) |
| Modifier and Type | Method and Description |
|---|---|
static InetAddress |
getAddress(String host) |
String |
getBind() |
InetAddress |
getInetAddress()
Gets the inetAddress number that the
daemon is listening on.
|
String |
getIP() |
String |
getName() |
int |
getPort()
Gets the port number that the
daemon is listening on.
|
ServerSocket |
getServerSocket() |
URI |
getServiceUri() |
void |
init(Properties props) |
boolean |
isSecure() |
void |
service(InputStream in,
OutputStream out) |
void |
service(Socket socket) |
void |
start() |
void |
stop() |
public ServiceDaemon(ServerService next)
public ServiceDaemon(ServerService next, int port, String ip)
public static InetAddress getAddress(String host)
public InetAddress getInetAddress()
public void init(Properties props) throws Exception
public void start()
throws ServiceException
start in interface ServerServiceServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic String getIP()
getIP in interface ServerServicepublic int getPort()
getPort in interface ServerServicepublic String getBind()
public void service(Socket socket) throws ServiceException, IOException
service in interface ServerServiceServiceExceptionIOExceptionpublic void service(InputStream in, OutputStream out) throws ServiceException, IOException
service in interface ServerServiceServiceExceptionIOExceptionpublic String getName()
getName in interface ServerServicepublic URI getServiceUri()
public boolean isSecure()
public ServerSocket getServerSocket()
Copyright © 1999-2014 The Apache Software Foundation. All Rights Reserved.