org.apache.openejb.server.httpd
Class OpenEJBHttpServer

java.lang.Object
  extended by org.apache.openejb.server.httpd.OpenEJBHttpServer
All Implemented Interfaces:
HttpServer, ServerService, Service

public class OpenEJBHttpServer
extends Object
implements HttpServer

This is the main class for the web administration. It takes care of the processing from the browser, sockets and threading.

Since:
11/25/2001

Nested Class Summary
static class OpenEJBHttpServer.Output
           
 
Constructor Summary
OpenEJBHttpServer()
           
OpenEJBHttpServer(HttpListener listener)
           
 
Method Summary
static HttpListenerRegistry getHttpListenerRegistry()
           
 String getIP()
           
 HttpListener getListener()
           
 String getName()
           
 int getPort()
           
 void init(Properties props)
           
static boolean isTextXml(Map<String,String> headers)
           
static String reformat(String raw)
           
 void service(InputStream in, OutputStream out)
           
 void service(Socket socket)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenEJBHttpServer

public OpenEJBHttpServer()

OpenEJBHttpServer

public OpenEJBHttpServer(HttpListener listener)
Method Detail

getHttpListenerRegistry

public static HttpListenerRegistry getHttpListenerRegistry()

isTextXml

public static boolean isTextXml(Map<String,String> headers)

getListener

public HttpListener getListener()
Specified by:
getListener in interface HttpServer

service

public void service(Socket socket)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException

service

public void service(InputStream in,
                    OutputStream out)
             throws ServiceException,
                    IOException
Specified by:
service in interface ServerService
Throws:
ServiceException
IOException

init

public void init(Properties props)
          throws Exception
Specified by:
init in interface Service
Throws:
Exception

start

public void start()
           throws ServiceException
Specified by:
start in interface ServerService
Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Specified by:
stop in interface ServerService
Throws:
ServiceException

getName

public String getName()
Specified by:
getName in interface ServerService

getPort

public int getPort()
Specified by:
getPort in interface ServerService

getIP

public String getIP()
Specified by:
getIP in interface ServerService

reformat

public static String reformat(String raw)


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.