net.dpml.transit.info
Class ProxyDirective

java.lang.Object
  extended bynet.dpml.lang.AbstractDirective
      extended bynet.dpml.transit.info.ProxyDirective
All Implemented Interfaces:
Serializable

public class ProxyDirective
extends AbstractDirective

Description of the proxy configuration of a Transit system.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
ProxyDirective(String host, String[] excludes, String username, char[] password)
          Create a new value descriptor using the default java.lang.String class as the base type.
 
Method Summary
 boolean equals(Object other)
          Compare this instance with a supplied object for equality.
 String[] getExcludes()
          Return the proxy exludes.
 String getHost()
          Return the proxy host.
 char[] getPassword()
          Return the proxy password.
 String getUsername()
          Return the proxy username.
 int hashCode()
          Compute the instance hashcode value.
 
Methods inherited from class net.dpml.lang.AbstractDirective
equals, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyDirective

public ProxyDirective(String host,
                      String[] excludes,
                      String username,
                      char[] password)
               throws NullPointerException
Create a new value descriptor using the default java.lang.String class as the base type.

Parameters:
host - the proxy host
excludes - an array of excluded hosts or null if no excludes
username - a possibly null username
password - a possibly null password
Throws:
NullPointerException - if the proxy host value is null
Method Detail

getHost

public String getHost()
Return the proxy host.

Returns:
the poxy host

getExcludes

public String[] getExcludes()
Return the proxy exludes.

Returns:
the poxy excludes

getUsername

public String getUsername()
Return the proxy username.

Returns:
the poxy username

getPassword

public char[] getPassword()
Return the proxy password.

Returns:
the poxy password

equals

public boolean equals(Object other)
Compare this instance with a supplied object for equality.

Overrides:
equals in class AbstractDirective
Parameters:
other - the other object
Returns:
true if the supplied instance is equal to this instance

hashCode

public int hashCode()
Compute the instance hashcode value.

Overrides:
hashCode in class AbstractDirective
Returns:
the hashcode