org.deegree_impl.enterprise
Class Proxy_Impl

java.lang.Object
  extended byorg.deegree_impl.enterprise.Proxy_Impl
All Implemented Interfaces:
Proxy

public class Proxy_Impl
extends java.lang.Object
implements Proxy

encapsulates proxy informations and offers a method for setting and unsetting the proxy

Version:
$Revision: 1.1 $
Author:
Andreas Poth

Field Summary
private  java.lang.String proxyHost
           
private  java.lang.String proxyPort
           
 
Constructor Summary
Proxy_Impl(java.lang.String proxyHost, java.lang.String proxyPort)
          Creates a new instance of Proxy_Impl
 
Method Summary
 java.lang.String getProxyHost()
          retuns the proxy host definition
 java.lang.String getProxyPort()
          returns the proxy port definition
 void setProxy(boolean proxySet)
          sets or unsets the proxy by writing the proxyHost and the proxyPort to the system properties.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

proxyHost

private java.lang.String proxyHost

proxyPort

private java.lang.String proxyPort
Constructor Detail

Proxy_Impl

public Proxy_Impl(java.lang.String proxyHost,
                  java.lang.String proxyPort)
Creates a new instance of Proxy_Impl

Method Detail

getProxyHost

public java.lang.String getProxyHost()
retuns the proxy host definition

Specified by:
getProxyHost in interface Proxy
Returns:

getProxyPort

public java.lang.String getProxyPort()
returns the proxy port definition

Specified by:
getProxyPort in interface Proxy
Returns:

setProxy

public void setProxy(boolean proxySet)
sets or unsets the proxy by writing the proxyHost and the proxyPort to the system properties.

Specified by:
setProxy in interface Proxy
Parameters:
proxySet -

toString

public java.lang.String toString()