org.openejb.webadmin.httpd
Class HttpServer
java.lang.Object
org.openejb.webadmin.httpd.HttpServer
- All Implemented Interfaces:
- org.openejb.server.ServerService, org.openejb.spi.Service
public class HttpServer
- extends java.lang.Object
- implements org.openejb.server.ServerService
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
- Author:
- David Blevins, Tim Urberg
Method Summary |
java.lang.String |
getIP()
|
java.lang.String |
getName()
|
int |
getPort()
|
void |
init(java.util.Properties props)
Initalizes this instance and takes care of starting things up |
void |
service(java.io.InputStream in,
java.io.OutputStream out)
|
void |
service(java.net.Socket socket)
|
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpServer
public HttpServer()
service
public void service(java.io.InputStream in,
java.io.OutputStream out)
throws org.openejb.server.ServiceException,
java.io.IOException
- Specified by:
service
in interface org.openejb.server.ServerService
- Throws:
org.openejb.server.ServiceException
java.io.IOException
service
public void service(java.net.Socket socket)
throws org.openejb.server.ServiceException,
java.io.IOException
- Specified by:
service
in interface org.openejb.server.ServerService
- Throws:
org.openejb.server.ServiceException
java.io.IOException
start
public void start()
throws org.openejb.server.ServiceException
- Specified by:
start
in interface org.openejb.server.ServerService
- Throws:
org.openejb.server.ServiceException
stop
public void stop()
throws org.openejb.server.ServiceException
- Specified by:
stop
in interface org.openejb.server.ServerService
- Throws:
org.openejb.server.ServiceException
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.openejb.server.ServerService
getPort
public int getPort()
- Specified by:
getPort
in interface org.openejb.server.ServerService
getIP
public java.lang.String getIP()
- Specified by:
getIP
in interface org.openejb.server.ServerService
init
public void init(java.util.Properties props)
throws java.lang.Exception
- Initalizes this instance and takes care of starting things up
- Specified by:
init
in interface org.openejb.server.ServerService
- Specified by:
init
in interface org.openejb.spi.Service
- Parameters:
props
- a properties instance for system properties
- Throws:
java.lang.Exception
- if an exeption is thrown
Copyright © 1999-2011 OpenEJB. All Rights Reserved.