Oracle Java Wireless Client

com.oracle.mobile.io
Class ConnectionParameters

java.lang.Object
  extended by com.oracle.mobile.io.ConnectionParameters

public class ConnectionParameters
extends java.lang.Object

Class which holds set of connection parameters.


Nested Class Summary
 class ConnectionParameters.Parameter
           
 
Field Summary
static int ACCESS_POINT_PARAMETER
          Parameter type value for access point parameter.
static int HTTP_PROXY_PARAMETER
          Parameter type value for http proxy parameter.
static int HTTP_PROXY_PASSWORD_PARAMETER
          Parameter type value for http proxy password parameter.
static int HTTP_PROXY_USERNAME_PARAMETER
          Parameter type value for http proxy username parameter.
 
Constructor Summary
ConnectionParameters()
           
 
Method Summary
 java.lang.Object getParameter(int paramType)
          Returns the value of the specified connection parameter.
 java.util.Enumeration getParameters()
          Returns an enumeration of the parameters set.
 void removeParameter(int paramType)
          Removes the specified connection parameter.
 void setParameter(ConnectionParameters.Parameter param)
          Sets the specified connection parameter, replacing any previous association.
 void setParameter(int paramType, java.lang.Object value)
          Sets the specified connection parameter to the specified value, replacing any previous association.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_POINT_PARAMETER

public static final int ACCESS_POINT_PARAMETER
Parameter type value for access point parameter. Corresponding value should contains com.oracle.mobile.io.accesspoint.AccessPoint object It is not possible to set an access point for loopback connections.

See Also:
Constant Field Values

HTTP_PROXY_PARAMETER

public static final int HTTP_PROXY_PARAMETER
Parameter type value for http proxy parameter. Corresponding value should contains the hostname followed by ':' and port. - ex) webcache.thecompany.com:8080

See Also:
Constant Field Values

HTTP_PROXY_USERNAME_PARAMETER

public static final int HTTP_PROXY_USERNAME_PARAMETER
Parameter type value for http proxy username parameter. Corresponding value should contains a String with username.

See Also:
Constant Field Values

HTTP_PROXY_PASSWORD_PARAMETER

public static final int HTTP_PROXY_PASSWORD_PARAMETER
Parameter type value for http proxy password parameter. Corresponding value should contains a String with password.

See Also:
Constant Field Values
Constructor Detail

ConnectionParameters

public ConnectionParameters()
Method Detail

setParameter

public void setParameter(int paramType,
                         java.lang.Object value)
Sets the specified connection parameter to the specified value, replacing any previous association.

Parameters:
paramType - type of the parameter to set
value - new parameter's value

setParameter

public void setParameter(ConnectionParameters.Parameter param)
Sets the specified connection parameter, replacing any previous association.

Parameters:
param - parameter to set

getParameter

public java.lang.Object getParameter(int paramType)
                              throws java.lang.IllegalArgumentException
Returns the value of the specified connection parameter.

Parameters:
paramType - parameter type to get value
Returns:
value of the specified parameter
Throws:
java.lang.IllegalArgumentException - if there is no such parameter

removeParameter

public void removeParameter(int paramType)
Removes the specified connection parameter.

Parameters:
paramType - param type to remove

getParameters

public java.util.Enumeration getParameters()
Returns an enumeration of the parameters set.

Returns:
an enumeration of the parameters set.

Oracle Java Wireless Client

Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.