net.proxy
Class ProxyBean

java.lang.Object
  extended by net.proxy.ProxyBean
All Implemented Interfaces:
java.io.Serializable

public class ProxyBean
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String HTTP_PROXY
           
static java.lang.String SOCKS_PROXY
           
 
Constructor Summary
ProxyBean()
          Instantiates a new proxy bean.
ProxyBean(java.lang.String type, java.lang.String url, int port, java.lang.String user, byte[] encryptedPassword)
          Instantiates a new proxy bean.
 
Method Summary
 byte[] getEncryptedPassword()
          Gets the encrypted password.
 java.lang.String getPassword()
          Gets the password.
 int getPort()
          Gets the port.
 java.lang.String getType()
          Gets the type.
 java.lang.String getUrl()
          Gets the url.
 java.lang.String getUser()
          Gets the user.
static void main(java.lang.String[] args)
           
 void setEncryptedPassword(byte[] encryptedPassword)
          Sets the encrypted password.
 void setPassword(java.lang.String password)
          Sets the password.
 void setPort(int port)
          Sets the port.
 void setType(java.lang.String type)
          Sets the type.
 void setUrl(java.lang.String url)
          Sets the url.
 void setUser(java.lang.String user)
          Sets the user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_PROXY

public static final java.lang.String HTTP_PROXY
See Also:
Constant Field Values

SOCKS_PROXY

public static final java.lang.String SOCKS_PROXY
See Also:
Constant Field Values
Constructor Detail

ProxyBean

public ProxyBean()
Instantiates a new proxy bean.


ProxyBean

public ProxyBean(java.lang.String type,
                 java.lang.String url,
                 int port,
                 java.lang.String user,
                 byte[] encryptedPassword)
Instantiates a new proxy bean.

Parameters:
type - the type
url - the url
port - the port
user - the user
encryptedPassword - the encrypted password
Method Detail

getEncryptedPassword

public byte[] getEncryptedPassword()
Gets the encrypted password.

Returns:
the encrypted password

getPassword

public java.lang.String getPassword()
Gets the password.

Returns:
the password

getPort

public int getPort()
Gets the port.

Returns:
the port

getType

public java.lang.String getType()
Gets the type.

Returns:
the type

getUrl

public java.lang.String getUrl()
Gets the url.

Returns:
the url

getUser

public java.lang.String getUser()
Gets the user.

Returns:
the user

setEncryptedPassword

public void setEncryptedPassword(byte[] encryptedPassword)
Sets the encrypted password.

Parameters:
encryptedPassword - the new encrypted password

setPassword

public void setPassword(java.lang.String password)
Sets the password.

Parameters:
password - the new password

setPort

public void setPort(int port)
Sets the port.

Parameters:
port - the new port

setType

public void setType(java.lang.String type)
Sets the type.

Parameters:
type - the new type

setUrl

public void setUrl(java.lang.String url)
Sets the url.

Parameters:
url - the new url

setUser

public void setUser(java.lang.String user)
Sets the user.

Parameters:
user - the new user

main

public static void main(java.lang.String[] args)