public class OpenEJBHttpServer extends java.lang.Object implements HttpServer
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenEJBHttpServer.Output |
| Constructor and Description |
|---|
OpenEJBHttpServer() |
OpenEJBHttpServer(HttpListener listener) |
| Modifier and Type | Method and Description |
|---|---|
static HttpListenerRegistry |
getHttpListenerRegistry() |
java.lang.String |
getIP() |
HttpListener |
getListener() |
java.lang.String |
getName() |
int |
getPort() |
void |
init(java.util.Properties props) |
static boolean |
isTextXml(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers) |
static java.lang.String |
reformat(java.lang.String raw) |
void |
service(java.io.InputStream in,
java.io.OutputStream out) |
void |
service(java.net.Socket socket) |
void |
start() |
void |
stop() |
public OpenEJBHttpServer()
public OpenEJBHttpServer(HttpListener listener)
public static HttpListenerRegistry getHttpListenerRegistry()
public static boolean isTextXml(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
public HttpListener getListener()
getListener in interface HttpServerpublic 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 init(java.util.Properties props)
throws java.lang.Exception
public 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 ServerServicepublic static java.lang.String reformat(java.lang.String raw)