***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.webdav
Class ConnectionInfo

com.sas.services.webdav.ConnectionInfo

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), userid, password, proxy host, proxy port, proxy userid, 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 c = new ConnectionInfo( "http://example.com/dav/resource", "user", "pwd" );
 c.setproxyHost( "myproxy.com" );
 c.setproxyPort( 3100 );
 DAVResource r = new DAVResource( c, _logger );
 

Since:
1.1

Constructor Summary
ConnectionInfo(ConnectionInfo connection)
           
ConnectionInfo(java.lang.String url)
           
ConnectionInfo(java.lang.String url, java.lang.String user, java.lang.String pw)
           
 
Method Summary
 java.lang.String getProxyHost()
          Returns the proxy host from the connection information
 int getProxyPort()
          Returns the proxy port from the connection information
 java.lang.String getProxyPW()
          Returns the proxy password from the connection information
 java.lang.String getProxyUser()
          Returns the proxy user from the connection information
 java.lang.String getPW()
          Returns the user password from the connection information
 java.lang.String getUrl()
          Returns the url from the connection information
 java.lang.String getUser()
          Returns the user from the connection information
 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

ConnectionInfo

public ConnectionInfo(java.lang.String url)

ConnectionInfo

public ConnectionInfo(java.lang.String url,
                      java.lang.String user,
                      java.lang.String pw)

ConnectionInfo

public ConnectionInfo(ConnectionInfo connection)
Method Detail

getUrl

public java.lang.String getUrl()
Returns the url from the connection information

Returns:
String The URL in the connection information

setUrl

public void setUrl(java.lang.String url)
Sets the url in the connection information

Parameters:
url - The url in the connection information

getUser

public java.lang.String getUser()
Returns the user from the connection information

Returns:
String The user in the connection information

setUser

public void setUser(java.lang.String user)
Sets the user in the connection information

Parameters:
user - The user in the connection information

getPW

public java.lang.String getPW()
Returns the user password from the connection information

Returns:
String The user password in the connection information

setPW

public void setPW(java.lang.String pw)
Sets the user password in the connection information

Parameters:
pw - The user password in the connection information

getProxyHost

public java.lang.String getProxyHost()
Returns the proxy host from the connection information

Returns:
String The proxy host in the connection information

setProxyHost

public void setProxyHost(java.lang.String proxyHost)
Sets the proxy host in the connection information

Parameters:
proxyHost - The proxy host in the connection information

getProxyPort

public int getProxyPort()
Returns the proxy port from the connection information

Returns:
String The proxy port in the connection information

setProxyPort

public void setProxyPort(int proxyPort)
Sets the proxy port in the connection information

Parameters:
proxyPort - The proxy port in the connection information

setProxyURL

public void setProxyURL(java.net.URL proxyURL)
Sets the proxy in the connection information using a URL

Parameters:
proxyURL - The proxy URL includes the host and port

getProxyUser

public java.lang.String getProxyUser()
Returns the proxy user from the connection information

Returns:
String The proxy user in the connection information

setProxyUser

public void setProxyUser(java.lang.String proxyUser)
Sets the proxy user in the connection information

Parameters:
proxyUser - The proxy user in the connection information

getProxyPW

public java.lang.String getProxyPW()
Returns the proxy password from the connection information

Returns:
String The proxy password in the connection information

setProxyPW

public void setProxyPW(java.lang.String proxyPW)
Sets the proxy password in the connection information

Parameters:
proxyPW - The proxy password in the connection information

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.