org.exolab.jms.net.http
Class HTTPRequestInfo

java.lang.Object
  |
  +--org.exolab.jms.net.connector.URIRequestInfo
        |
        +--org.exolab.jms.net.http.HTTPRequestInfo
All Implemented Interfaces:
ConnectionRequestInfo

public class HTTPRequestInfo
extends URIRequestInfo

Implementation of the ConnectionRequestInfo interface that enables the HTTP connector to pass data across the connection request flow.

Version:
$Revision: 1.5 $ $Date: 2005/05/03 13:45:58 $
Author:
Tim Anderson

Constructor Summary
HTTPRequestInfo(URI uri)
          Construct a new HTTPRequestInfo.
HTTPRequestInfo(URI uri, Properties properties)
          Construct a new HTTPRequestInfo.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks whether this instance is equal to another.
 void export(Properties properties)
          Helper to export this to a Properties instance.
 java.lang.String getProxyHost()
          Returns the proxy host.
 java.lang.String getProxyPassword()
          Returns the proxy password.
 int getProxyPort()
          Returns the proxy port.
 java.lang.String getProxyUser()
          Returns the proxy user.
 SSLProperties getSSLProperties()
          Returns the properties used to configure the secure socket layer (SSL).
 void setProxyHost(java.lang.String host)
          Sets the proxy host.
 void setProxyPassword(java.lang.String pwd)
          Sets the proxy password.
 void setProxyPort(int port)
          Sets the proxy port.
 void setProxyUser(java.lang.String user)
          Sets the proxy user.
 void setSSLProperties(SSLProperties properties)
          Sets the properties used to configure the secure socket layer (SSL).
 
Methods inherited from class org.exolab.jms.net.connector.URIRequestInfo
getHost, getHostAddress, getPort, getPrincipal, getURI, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTTPRequestInfo

public HTTPRequestInfo(URI uri)
Construct a new HTTPRequestInfo.
Parameters:
uri - the URI

HTTPRequestInfo

public HTTPRequestInfo(URI uri,
                       Properties properties)
                throws ResourceException
Construct a new HTTPRequestInfo.
Parameters:
uri - the URI
properties - the properties to populate this from
Throws:
ResourceException - if any of the properties are invalid
Method Detail

setProxyHost

public void setProxyHost(java.lang.String host)
Sets the proxy host.
Parameters:
host - the proxy host

getProxyHost

public java.lang.String getProxyHost()
Returns the proxy host.
Returns:
the proxy host, or null if none is set

setProxyPort

public void setProxyPort(int port)
Sets the proxy port.
Parameters:
port - the proxy port

getProxyPort

public int getProxyPort()
Returns the proxy port.
Returns:
the proxy port, or 0 if none is set

setProxyUser

public void setProxyUser(java.lang.String user)
Sets the proxy user.
Parameters:
user - the proxy user

getProxyUser

public java.lang.String getProxyUser()
Returns the proxy user.
Returns:
the proxy user, or null if none is set

setProxyPassword

public void setProxyPassword(java.lang.String pwd)
Sets the proxy password.
Parameters:
pwd - the proxy password

getProxyPassword

public java.lang.String getProxyPassword()
Returns the proxy password.
Returns:
the proxy password, or null if none is set

getSSLProperties

public SSLProperties getSSLProperties()
Returns the properties used to configure the secure socket layer (SSL).
Returns:
the SSL configuration properties, or null if unset

setSSLProperties

public void setSSLProperties(SSLProperties properties)
Sets the properties used to configure the secure socket layer (SSL).
Parameters:
properties - the SSL configuration properties

export

public void export(Properties properties)
Helper to export this to a Properties instance.
Overrides:
export in class URIRequestInfo
Parameters:
properties - the properties to export to.

equals

public boolean equals(java.lang.Object other)
Checks whether this instance is equal to another.
Overrides:
equals in class URIRequestInfo
Parameters:
other - the object to compare
Returns:
true if the two instances are equal; otherwise false


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.