public class ConnectionParameters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ConnectionParameters.Parameter |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ConnectionParameters() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static final int ACCESS_POINT_PARAMETER
public static final int HTTP_PROXY_PARAMETER
public static final int HTTP_PROXY_USERNAME_PARAMETER
public static final int HTTP_PROXY_PASSWORD_PARAMETER
public void setParameter(int paramType, java.lang.Object value)
paramType
- type of the parameter to setvalue
- new parameter's valuepublic void setParameter(ConnectionParameters.Parameter param)
param
- parameter to setpublic java.lang.Object getParameter(int paramType) throws java.lang.IllegalArgumentException
paramType
- parameter type to get valuejava.lang.IllegalArgumentException
- if there is no such parameterpublic void removeParameter(int paramType)
paramType
- param type to removepublic java.util.Enumeration getParameters()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.