|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Server will call the following methods. newInstance() init( port, properties) start() stop() All ServerService implementations must have a no argument constructor.
Method Summary | |
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(InputStream in,
OutputStream out)
|
void |
service(Socket socket)
|
void |
start()
|
void |
stop()
|
Method Detail |
public void init(Properties props) throws Exception
init
in interface Service
Exception
public void start() throws ServiceException
ServiceException
public void stop() throws ServiceException
ServiceException
public void service(InputStream in, OutputStream out) throws ServiceException, IOException
ServiceException
IOException
public void service(Socket socket) throws ServiceException, IOException
ServiceException
IOException
public String getName()
public String getIP()
public int getPort()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |