|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.webdav.ConnectionInfo
@SASScope(value="ALL") @BinaryCompatibilityOnly public class ConnectionInfo
Identifies all the information required to make a connection to a DAV server. This information includes the URL of the resource (containing the host, port and path), user ID, password, proxy host, proxy port, proxy user ID, proxy password. This object is then passed to a connection constructor. For example, if one was using this to create a DAVResource, then use something similar to the following:
ConnectionInfo connectionInfo = new ConnectionInfo( "http://example.com/dav/resource",
"user",
"pwd" );
connectionInfo.setproxyHost( "myproxy.com" );
connectionInfo.setproxyPort( 3100 );
DAVResource r = new DAVResource(connectionInfo);
| Constructor Summary | |
|---|---|
ConnectionInfo(ConnectionInfo connectionInfo)
Constructs an instance using the specified connection information. |
|
ConnectionInfo(java.lang.String url)
Constructs an instance using the specified URL. |
|
ConnectionInfo(java.lang.String url,
java.lang.String user,
java.lang.String pw)
Constructs an instance using the specified URL, user and password. |
|
| Method Summary | |
|---|---|
org.apache.http.auth.AuthScope |
getAuthScope()
Gets the authentication scope which specifies which credentials should be obtained from the credentials provider. |
org.apache.http.client.CredentialsProvider |
getCredentialsProvider()
Gets the credentials provider. |
java.lang.String |
getProxyHost()
Gets the proxy host from the connection information. |
int |
getProxyPort()
Gets the proxy port from the connection information. |
java.lang.String |
getProxyPW()
Gets the proxy password from the connection information. |
java.lang.String |
getProxyUser()
Gets the proxy user from the connection information. |
java.lang.String |
getPW()
Gets the user password from the connection information. |
java.lang.String |
getUrl()
Gets the URL from the connection information. |
java.lang.String |
getUser()
Returns the user from the connection information. |
void |
setAuthScope(org.apache.http.auth.AuthScope authScope)
Sets the authentication scope which specifies which credentials should be obtained from the credentials provider. |
void |
setCredentialsProvider(org.apache.http.client.CredentialsProvider credentialsProvider)
Sets the credentials provider. |
void |
setProxyHost(java.lang.String proxyHost)
Sets the proxy host in the connection information. |
void |
setProxyPort(int proxyPort)
Sets the proxy port in the connection information. |
void |
setProxyPW(java.lang.String proxyPW)
Sets the proxy password in the connection information. |
void |
setProxyURL(java.net.URL proxyURL)
Sets the proxy in the connection information using a URL. |
void |
setProxyUser(java.lang.String proxyUser)
Sets the proxy user in the connection information. |
void |
setPW(java.lang.String pw)
Sets the user password in the connection information. |
void |
setUrl(java.lang.String url)
Sets the URL in the connection information. |
void |
setUser(java.lang.String user)
Sets the user in the connection information. |
| Constructor Detail |
|---|
public ConnectionInfo(java.lang.String url)
url - URL
public ConnectionInfo(java.lang.String url,
java.lang.String user,
java.lang.String pw)
url - URLuser - Userpw - Passwordpublic ConnectionInfo(ConnectionInfo connectionInfo)
connectionInfo - Connection information.| Method Detail |
|---|
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
url - The URL in the connection informationpublic java.lang.String getUser()
public void setUser(java.lang.String user)
user - The user in the connection informationpublic java.lang.String getPW()
public void setPW(java.lang.String pw)
pw - The user password in the connection informationpublic java.lang.String getProxyHost()
public void setProxyHost(java.lang.String proxyHost)
proxyHost - The proxy host in the connection informationpublic int getProxyPort()
public void setProxyPort(int proxyPort)
proxyPort - The proxy port in the connection informationpublic void setProxyURL(java.net.URL proxyURL)
proxyURL - The proxy URL includes the host and portpublic java.lang.String getProxyUser()
public void setProxyUser(java.lang.String proxyUser)
proxyUser - The proxy user in the connection informationpublic java.lang.String getProxyPW()
public void setProxyPW(java.lang.String proxyPW)
proxyPW - The proxy password in the connection informationpublic org.apache.http.client.CredentialsProvider getCredentialsProvider()
null if there is no credentials provider.public void setCredentialsProvider(org.apache.http.client.CredentialsProvider credentialsProvider)
credentialsProvider - Credentials provider.setAuthScope(AuthScope)public org.apache.http.auth.AuthScope getAuthScope()
null if not specified.setAuthScope(AuthScope),
setCredentialsProvider(CredentialsProvider)public void setAuthScope(org.apache.http.auth.AuthScope authScope)
authScope - Authentication scope.getAuthScope(),
setCredentialsProvider(CredentialsProvider)
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||