railo.runtime.net.proxy
Class ProxyDataImpl

java.lang.Object
  extended by railo.runtime.net.proxy.ProxyDataImpl
All Implemented Interfaces:
Serializable, ProxyData

public class ProxyDataImpl
extends Object
implements ProxyData, Serializable

See Also:
Serialized Form

Field Summary
static ProxyData NO_PROXY
           
 
Constructor Summary
ProxyDataImpl()
           
ProxyDataImpl(String server, int port, String username, String password)
           
 
Method Summary
 boolean equals(Object obj)
           
static ProxyData getInstance(String proxyserver, int proxyport, String proxyuser, String proxypassword)
           
 String getPassword()
           
 int getPort()
           
 String getServer()
           
 String getUsername()
           
static boolean hasCredentials(ProxyData data)
           
static boolean isValid(ProxyData pd)
           
 void release()
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setServer(String server)
           
 void setUsername(String username)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_PROXY

public static final ProxyData NO_PROXY
Constructor Detail

ProxyDataImpl

public ProxyDataImpl(String server,
                     int port,
                     String username,
                     String password)

ProxyDataImpl

public ProxyDataImpl()
Method Detail

release

public void release()
Specified by:
release in interface ProxyData

getPassword

public String getPassword()
Specified by:
getPassword in interface ProxyData
Returns:
the password

setPassword

public void setPassword(String password)
Specified by:
setPassword in interface ProxyData
Parameters:
password - the password to set

getPort

public int getPort()
Specified by:
getPort in interface ProxyData
Returns:
the port

setPort

public void setPort(int port)
Specified by:
setPort in interface ProxyData
Parameters:
port - the port to set

getServer

public String getServer()
Specified by:
getServer in interface ProxyData
Returns:
the server

setServer

public void setServer(String server)
Specified by:
setServer in interface ProxyData
Parameters:
server - the server to set

getUsername

public String getUsername()
Specified by:
getUsername in interface ProxyData
Returns:
the username

setUsername

public void setUsername(String username)
Specified by:
setUsername in interface ProxyData
Parameters:
username - the username to set

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

isValid

public static boolean isValid(ProxyData pd)

hasCredentials

public static boolean hasCredentials(ProxyData data)

getInstance

public static ProxyData getInstance(String proxyserver,
                                    int proxyport,
                                    String proxyuser,
                                    String proxypassword)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 Railo