Esri Geoportal Server
1.0

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

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

public abstract class HRAbstractClient
extends Object
implements HRClient

Abstract harvest repository client. Provides basic implementation of the harvest repository client.


Constructor Summary
HRAbstractClient()
           
 
Method Summary
protected abstract  String getHostUrl()
          Gets host url.
protected  int getTimeout()
          Gets connection timeout.
 boolean isPingSupported()
          Checks if ping operation is supported.
 String toString()
          Returns a string representation of the object.
protected  void validateProtocol()
          Validates protocol definition.
 
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

HRAbstractClient

public HRAbstractClient()
Method Detail

getTimeout

protected int getTimeout()
Gets connection timeout.

Returns:
timeout in milliseconds

getHostUrl

protected abstract String getHostUrl()
Gets host url.

Returns:
host url

isPingSupported

public boolean isPingSupported()
Checks if ping operation is supported.

Specified by:
isPingSupported in interface HRClient
Returns:
true if ping operation is supported
See Also:
HRClient.ping()

toString

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

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

validateProtocol

protected void validateProtocol()
                         throws HRInvalidProtocolException
Validates protocol definition.

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.