Esri Geoportal Server
1.0

com.esri.gpt.catalog.harvest.clients
Class HRProtectedHttpClient

java.lang.Object
  extended by com.esri.gpt.catalog.harvest.clients.HRAbstractClient
      extended by com.esri.gpt.catalog.harvest.clients.HRHttpClient
          extended by com.esri.gpt.catalog.harvest.clients.HRProtectedHttpClient
All Implemented Interfaces:
HRClient
Direct Known Subclasses:
HRArcGisClient, HRWAFClient

public abstract class HRProtectedHttpClient
extends HRHttpClient

Protected HTTP client.


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.harvest.clients.HRHttpClient
FTP_URL_PFX, HTTP_URL_PFX, HTTPS_URL_PFX
 
Constructor Summary
HRProtectedHttpClient()
           
 
Method Summary
 String getUserName()
          Gets user name required to make connection.
 String getUserPassword()
          Gets user password required to make connection.
protected  InputStream openConnection(String connectionString)
          Creates HTTP connection.
protected  InputStream openConnection(String connectionString, String initString)
          Creates http connection.
 void setUserName(String userName)
          Sets user name required to make connection.
 void setUserPassword(String userPassword)
          Sets user password required to make connection.
 
Methods inherited from class com.esri.gpt.catalog.harvest.clients.HRHttpClient
isFtp, isHttp, isHttps, validateProtocol
 
Methods inherited from class com.esri.gpt.catalog.harvest.clients.HRAbstractClient
getHostUrl, getTimeout, isPingSupported, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.esri.gpt.catalog.harvest.clients.HRClient
ping
 

Constructor Detail

HRProtectedHttpClient

public HRProtectedHttpClient()
Method Detail

getUserName

public String getUserName()
Gets user name required to make connection.

Returns:
user name required to make connection

setUserName

public void setUserName(String userName)
Sets user name required to make connection.

Parameters:
userName - user name required to make connection

getUserPassword

public String getUserPassword()
Gets user password required to make connection.

Returns:
user password required to make connection

setUserPassword

public void setUserPassword(String userPassword)
Sets user password required to make connection.

Parameters:
userPassword - user password required to make connection

openConnection

protected InputStream openConnection(String connectionString)
                              throws HRConnectionException
Creates HTTP connection.

Overrides:
openConnection in class HRHttpClient
Parameters:
connectionString - connection string
Returns:
input stream to read response
Throws:
HRConnectionException - if unable to open connection

openConnection

protected InputStream openConnection(String connectionString,
                                     String initString)
                              throws HRConnectionException
Creates http connection.

Overrides:
openConnection in class HRHttpClient
Parameters:
connectionString - connection string
initString - text of request to be sent uppon connection
Returns:
input stream to read response
Throws:
HRConnectionException - if unable to open connection

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.