public class NetUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_VERSION
The version of this class.
|
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.httpclient.HttpClient |
addCredentials(org.apache.commons.httpclient.HttpClient pClient,
URI pEndPoint,
String pUserName,
String pPassword)
Takes a
HttpClient and adds credentials for a specific URI . |
public static final String CLASS_VERSION
public static org.apache.commons.httpclient.HttpClient addCredentials(org.apache.commons.httpclient.HttpClient pClient, URI pEndPoint, String pUserName, String pPassword)
HttpClient
and adds credentials for a specific URI
. Run this method multiple times
to configure multiple URIs with the same client and user name/password combinations.pClient
- the client to configurepEndPoint
- the specific endpoint to add credentials topUserName
- the user name to usepPassword
- the password to use© 1998- 2018 Stibo DX