Java HTTP Proxy Library Project Page
SourceForge.net Logo

com.wpg.proxy
Class ProxyRegistry

java.lang.Object
  extended by com.wpg.proxy.ProxyRegistry

public class ProxyRegistry
extends java.lang.Object

A static data container that keeps references to every HttpMessageHandler/Processor that must be called by the Proxy for each message. It also containes the SSL key information.


Method Summary
static void addHandler(HttpMessageHandler hml)
          Add a new handler to receive incomming http responses, as well as the request
static void addRequestProcessor(HttpMessageProcessor hmp)
          Add a new request processor
static void addResponseProcessor(HttpMessageProcessor hmp)
          Add a new response processor
static void enableStatusBrowser(boolean enable)
          enable or dissable the status browser capability
protected static java.util.Vector<HttpMessageHandler> getHandlers()
          Get the list of request handlers
protected static java.lang.String getKeystoreFilename()
          Get Keystore File Name
protected static char[] getKeystoreKeysPassword()
          Get Keystore keys password
protected static char[] getKeystorePassword()
          Get Keystore password
protected static java.util.Vector<HttpMessageProcessor> getRequestProcessors()
          Get the list of request processors
protected static java.util.Vector<HttpMessageProcessor> getResponseProcessors()
          Get the list of response processors
static boolean isStatusBrowserEnabled()
          is the status browser capability enabled?
static boolean removeHandler(HttpMessageHandler hml)
          Removes a response handler
static boolean removeRequestProcessor(HttpMessageProcessor hmp)
          Removes a response processor
static boolean removeResponseProcessor(HttpMessageProcessor hmp)
          Removes a response processor
protected static void setKeystoreFilename(java.lang.String s)
          Set Keystore File Name
protected static void setKeystoreKeysPassword(char[] c)
          Set Keystore keys password
protected static void setKeystorePassword(char[] c)
          Set Keystore password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isStatusBrowserEnabled

public static boolean isStatusBrowserEnabled()
is the status browser capability enabled?


enableStatusBrowser

public static void enableStatusBrowser(boolean enable)
enable or dissable the status browser capability


addHandler

public static void addHandler(HttpMessageHandler hml)
Add a new handler to receive incomming http responses, as well as the request


removeHandler

public static boolean removeHandler(HttpMessageHandler hml)
Removes a response handler


getHandlers

protected static java.util.Vector<HttpMessageHandler> getHandlers()
Get the list of request handlers


addRequestProcessor

public static void addRequestProcessor(HttpMessageProcessor hmp)
Add a new request processor


removeRequestProcessor

public static boolean removeRequestProcessor(HttpMessageProcessor hmp)
Removes a response processor


getRequestProcessors

protected static java.util.Vector<HttpMessageProcessor> getRequestProcessors()
Get the list of request processors


addResponseProcessor

public static void addResponseProcessor(HttpMessageProcessor hmp)
Add a new response processor


removeResponseProcessor

public static boolean removeResponseProcessor(HttpMessageProcessor hmp)
Removes a response processor


getResponseProcessors

protected static java.util.Vector<HttpMessageProcessor> getResponseProcessors()
Get the list of response processors


setKeystoreFilename

protected static void setKeystoreFilename(java.lang.String s)
Set Keystore File Name


setKeystorePassword

protected static void setKeystorePassword(char[] c)
Set Keystore password


setKeystoreKeysPassword

protected static void setKeystoreKeysPassword(char[] c)
Set Keystore keys password


getKeystoreFilename

protected static java.lang.String getKeystoreFilename()
Get Keystore File Name


getKeystorePassword

protected static char[] getKeystorePassword()
Get Keystore password


getKeystoreKeysPassword

protected static char[] getKeystoreKeysPassword()
Get Keystore keys password


Java HTTP Proxy Library Project Page
SourceForge.net Logo