de.root1.simon
Class SimonProxyConfig

java.lang.Object
  extended by de.root1.simon.SimonProxyConfig

public class SimonProxyConfig
extends java.lang.Object

A pojo class that holds information about the proxy configuration needed to establish a SIMON connection via a proxy server

Version:
200901201553
Author:
Alexander Christian

Constructor Summary
SimonProxyConfig(java.lang.String proxyHost, int proxyPort, boolean authRequired, java.lang.String username, java.lang.String password)
          Constructor for the proxy config class.
 
Method Summary
 java.lang.String getPassword()
          Gets the password that was set for proxy authentication
 java.lang.String getProxyHost()
          Returns the current set proxy host
 int getProxyPort()
          Returns the current set port on which the proxy listens for incoming connections
 java.lang.String getUsername()
          Gets the username that was set for proxy authentication
 boolean isAuthRequired()
          Returns the current set "authentication required?"
 void setAuthRequired(boolean authRequired)
          Sets whether the proxy needs authentication or not
 void setPassword(java.lang.String password)
          Sets the password that is needed for proxy authentication
 void setProxyHost(java.lang.String proxyHost)
          Sets the proxy host to connect to
 void setProxyPort(int proxyPort)
          Sets the port on which the proxy listens for incoming connections
 void setUsername(java.lang.String username)
          Sets the username that is needed for proxy authentication
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimonProxyConfig

public SimonProxyConfig(java.lang.String proxyHost,
                        int proxyPort,
                        boolean authRequired,
                        java.lang.String username,
                        java.lang.String password)
Constructor for the proxy config class. Let's one set all needed information at once. if authRequired==null, username and password can be null

Parameters:
proxyHost - the proxy's host
proxyPort - the proxy's port
authRequired - does the proxy require an authentication?
username - username, if authentication is required
password - password, if authentication is required
Method Detail

getProxyHost

public java.lang.String getProxyHost()
Returns the current set proxy host

Returns:
the proxy's host

setProxyHost

public void setProxyHost(java.lang.String proxyHost)
Sets the proxy host to connect to

Parameters:
proxyHost - the proxyHost to connect to

getProxyPort

public int getProxyPort()
Returns the current set port on which the proxy listens for incoming connections

Returns:
the proxyPort

setProxyPort

public void setProxyPort(int proxyPort)
Sets the port on which the proxy listens for incoming connections

Parameters:
proxyPort - the proxy's port

isAuthRequired

public boolean isAuthRequired()
Returns the current set "authentication required?" flag

Returns:
true, if flag is set, false if not

setAuthRequired

public void setAuthRequired(boolean authRequired)
Sets whether the proxy needs authentication or not

Parameters:
authRequired - true, if auth. is required, false if not

getUsername

public java.lang.String getUsername()
Gets the username that was set for proxy authentication

Returns:
the username

setUsername

public void setUsername(java.lang.String username)
Sets the username that is needed for proxy authentication

Parameters:
username - the username to set

getPassword

public java.lang.String getPassword()
Gets the password that was set for proxy authentication

Returns:
the password

setPassword

public void setPassword(java.lang.String password)
Sets the password that is needed for proxy authentication

Parameters:
password - the password to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.