org.apache.axis2.transport.http.server
Class SimpleProxy

java.lang.Object
  extended byorg.apache.axis2.transport.http.server.SimpleHttpServer
      extended byorg.apache.axis2.transport.http.server.SimpleProxy
All Implemented Interfaces:
java.lang.Runnable

public class SimpleProxy
extends SimpleHttpServer

Simple server that registers default request handlers to act as a proxy.


Constructor Summary
SimpleProxy()
           
SimpleProxy(int port)
           
 
Method Summary
 void addHandler(HttpRequestHandler handler)
           
 void destroy()
          Stops this HTTP server instance.
 void requireAuthentication(Credentials creds)
           
 void requireAuthentication(Credentials creds, java.lang.String realm, boolean keepalive)
           
 
Methods inherited from class org.apache.axis2.transport.http.server.SimpleHttpServer
getLocalAddress, getLocalPort, getRequestHandler, getTestname, isRunning, run, setHttpService, setRequestHandler, setTestname
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleProxy

public SimpleProxy(int port)
            throws java.io.IOException

SimpleProxy

public SimpleProxy()
            throws java.io.IOException
Method Detail

requireAuthentication

public void requireAuthentication(Credentials creds,
                                  java.lang.String realm,
                                  boolean keepalive)

requireAuthentication

public void requireAuthentication(Credentials creds)

destroy

public void destroy()
Description copied from class: SimpleHttpServer
Stops this HTTP server instance.

Overrides:
destroy in class SimpleHttpServer

addHandler

public void addHandler(HttpRequestHandler handler)