Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


waggle.core.http
Class XHTTPSession

java.lang.Object
  extended by waggle.core.http.XHTTPSession


public final class XHTTPSession
extends Object

Ya need one of these per thread right now cause of the instance fields.


Field Summary
static String ENABLE_SELF_SIGNED_CERTIFICATES
          Property name to enable self signed certificates.

 

Constructor Summary
XHTTPSession(String host)
          Create an HTTP Session for the specified host and default path.
XHTTPSession(String host, String proxyHost, int proxyPort)
          Create an HTTP Session for the specified host and path using the specified proxy host and port.

 

Method Summary
 XHTTPMethod getMethod(String path)
          Get an XHTTPMethod for this XHTTPSession using the specified path.
 void setConnectionTimeout(int timeout)
          Set the connection timeout in milliseconds.
 void setCredentials(String userName, String userPassword)
          Set the credentials to use.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

ENABLE_SELF_SIGNED_CERTIFICATES

public static final String ENABLE_SELF_SIGNED_CERTIFICATES
Property name to enable self signed certificates.
See Also:
Constant Field Values

Constructor Detail

XHTTPSession

public XHTTPSession(String host)
Create an HTTP Session for the specified host and default path.
Parameters:
host - The host.

XHTTPSession

public XHTTPSession(String host,
                    String proxyHost,
                    int proxyPort)
Create an HTTP Session for the specified host and path using the specified proxy host and port.
Parameters:
host - The host.
proxyHost - The proxy host.
proxyPort - The proxy port.

Method Detail

setConnectionTimeout

public void setConnectionTimeout(int timeout)
Set the connection timeout in milliseconds.
Parameters:
timeout - The connection timeout in milliseconds.

setCredentials

public void setCredentials(String userName,
                           String userPassword)
Set the credentials to use.
Parameters:
userName - The User name.
userPassword - The User password.

getMethod

public XHTTPMethod getMethod(String path)
Get an XHTTPMethod for this XHTTPSession using the specified path.
Parameters:
path - The path.
Returns:
The method.

Skip navigation links

Oracle® On Track Communication SDK Documentation
Release 1(1.0)

E20955-01


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.