Esri Geoportal Server
1.0

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

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
              extended by com.esri.gpt.catalog.harvest.clients.HRWAFClient
All Implemented Interfaces:
HRClient

public class HRWAFClient
extends HRProtectedHttpClient

Harvest repository WAF client. Provides complete implementation of the client cappable to access to Web Accessible Folders.


Field Summary
 
Fields inherited from class com.esri.gpt.catalog.harvest.clients.HRHttpClient
FTP_URL_PFX, HTTP_URL_PFX, HTTPS_URL_PFX
 
Constructor Summary
HRWAFClient(String hostUrl, String userName, String userPassword)
          Creates instance of the client.
 
Method Summary
 String getHostUrl()
          Gets host URL.
 void ping()
          Checks and verifies connection to the remote repository.
 void setHostUrl(String hostUrl)
          Sets host URL.
 String toString()
          Returns a string representation of the object.
protected  void validateProtocol()
          Validates protocol definition.
 
Methods inherited from class com.esri.gpt.catalog.harvest.clients.HRProtectedHttpClient
getUserName, getUserPassword, openConnection, openConnection, setUserName, setUserPassword
 
Methods inherited from class com.esri.gpt.catalog.harvest.clients.HRHttpClient
isFtp, isHttp, isHttps
 
Methods inherited from class com.esri.gpt.catalog.harvest.clients.HRAbstractClient
getTimeout, isPingSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HRWAFClient

public HRWAFClient(String hostUrl,
                   String userName,
                   String userPassword)
Creates instance of the client.

Parameters:
hostUrl - host sUrl
userName - user name
userPassword - user password
Method Detail

getHostUrl

public String getHostUrl()
Gets host URL.

Specified by:
getHostUrl in class HRAbstractClient
Returns:
host URL

setHostUrl

public void setHostUrl(String hostUrl)
Sets host URL.

Parameters:
hostUrl - host URL

ping

public void ping()
          throws HRInvalidProtocolException,
                 HRConnectionException
Checks and verifies connection to the remote repository.

Throws:
HRInvalidProtocolException - if provided connection definition is incomplete
HRConnectionException - if connection to the remote repository can not be established at this moment

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class HRAbstractClient
Returns:
string representation of the object

validateProtocol

protected void validateProtocol()
                         throws HRInvalidProtocolException
Validates protocol definition.

Overrides:
validateProtocol in class HRHttpClient
Throws:
HRInvalidProtocolException - if invalid protocol definition

Esri Geoportal Server
1.0

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