public abstract class HttpEjbServer extends java.lang.Object implements ServerService
| Modifier and Type | Field and Description |
|---|---|
protected HttpServer |
httpServer |
| Constructor and Description |
|---|
HttpEjbServer() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIP() |
java.lang.String |
getName() |
int |
getPort() |
void |
init(java.util.Properties props) |
void |
service(java.io.InputStream in,
java.io.OutputStream out) |
void |
service(java.net.Socket socket) |
void |
start() |
void |
stop() |
protected HttpServer httpServer
public void init(java.util.Properties props)
throws java.lang.Exception
public void service(java.net.Socket socket)
throws ServiceException,
java.io.IOException
service in interface ServerServiceServiceExceptionjava.io.IOExceptionpublic void service(java.io.InputStream in,
java.io.OutputStream out)
throws ServiceException,
java.io.IOException
service in interface ServerServiceServiceExceptionjava.io.IOExceptionpublic void start()
throws ServiceException
start in interface ServerServiceServiceExceptionpublic void stop()
throws ServiceException
stop in interface ServerServiceServiceExceptionpublic java.lang.String getName()
getName in interface ServerServicepublic int getPort()
getPort in interface ServerServicepublic java.lang.String getIP()
getIP in interface ServerService