net.xoetrope.optional.http
Class XHttpServer
java.lang.Object
net.xoetrope.optional.http.XHttpServer
public class XHttpServer
- extends java.lang.Object
A minimal http server, designed so that a server side application can signal
a client to do an action by making an http request.
This server does not use NIO so as to be compatible with early JDKs, but this
should not be an issue as being a minimla server the class is designed for
low volumes of requests
Copyright (c) Xoetrope Ltd., 2001-2006, see license.txt for details
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OK
public static final java.lang.String OK
- See Also:
- Constant Field Values
BAD_REQUEST
public static final java.lang.String BAD_REQUEST
- See Also:
- Constant Field Values
INTERNAL_ERROR
public static final java.lang.String INTERNAL_ERROR
- See Also:
- Constant Field Values
XHttpServer
public XHttpServer(int port,
XHttpResponseHandler handler)
throws java.io.IOException
- Creates a new instance of XHttpServer
- Parameters:
port - the port number
- Throws:
java.io.IOException - if the port cannot be used, or is already in use.