Esri Geoportal Server
1.0

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

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.HRCSWClient
All Implemented Interfaces:
HRClient

public class HRCSWClient
extends HRHttpClient

CSW client. Provides complete implementation of the client accessing CSW harvest repositories.

See Also:
Catalog Service for Web specification

Field Summary
 
Fields inherited from class com.esri.gpt.catalog.harvest.clients.HRHttpClient
FTP_URL_PFX, HTTP_URL_PFX, HTTPS_URL_PFX
 
Constructor Summary
HRCSWClient(String hostUrl, String profile)
          Creates instance of the client.
 
Method Summary
protected  void analyzePingResponse(InputStream response)
          Analyzes response from the ping request.
 String getHostUrl()
          Gets host URL.
 String getProfile()
          Gets CSW profile.
 void ping()
          Checks and verifies connection to the remote repository.
 void setHostUrl(String hostUrl)
          Sets host URL.
 void setProfile(String profile)
          Sets CSW profile.
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class com.esri.gpt.catalog.harvest.clients.HRHttpClient
isFtp, isHttp, isHttps, openConnection, openConnection, validateProtocol
 
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

HRCSWClient

public HRCSWClient(String hostUrl,
                   String profile)
Creates instance of the client.

Parameters:
hostUrl - host URL
profile - profile
Method Detail

getProfile

public String getProfile()
Gets CSW profile.

Returns:
CSW profile

setProfile

public void setProfile(String profile)
Sets CSW profile.

Parameters:
profile - profile

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

analyzePingResponse

protected void analyzePingResponse(InputStream response)
                            throws HRInvalidResponseException
Analyzes response from the ping request.

Parameters:
response - response from the server
Throws:
HRInvalidResponseException - if response is invalid

Esri Geoportal Server
1.0

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