|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.catalog.harvest.protocols.HarvestProtocol
public abstract class HarvestProtocol
Generic harvesting protocol.
HrRecord,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
HarvestProtocol.ProtocolType
Protocol type. |
| Constructor Summary | |
|---|---|
HarvestProtocol()
|
|
| Method Summary | |
|---|---|
protected abstract void |
applyAttributeMap(StringAttributeMap attributeMap)
Sets all the attributes. |
protected String |
chckAttr(StringAttribute attribute)
Checks attribute. |
void |
checkConnection(String url)
Checks connection to the specific server. |
protected abstract StringAttributeMap |
extractAttributeMap()
Gets all the attributes. |
abstract HRClient |
getClient(String hostUrl)
Gets client associated with particular protocol. |
long |
getFlags()
Gets flag set. |
String |
getKind()
Gets protocol kind. |
boolean |
getPingSupported()
Checks if ping operation is supported. |
abstract HarvestProtocol.ProtocolType |
getType()
Gets protocol type. |
void |
ping(String url)
Pings resource. |
void |
setFlags(long flags)
Sets flag set. |
String |
toString()
Gets string representation of the protocol. |
String |
toXmlString()
Creates xml string representation of the protocol. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.esri.gpt.control.webharvest.protocol.Protocol |
|---|
getAttributeMap, newQueryBuilder, setAttributeMap |
| Constructor Detail |
|---|
public HarvestProtocol()
| Method Detail |
|---|
public boolean getPingSupported()
true if ping operation is supportedHRClient.ping()public abstract HarvestProtocol.ProtocolType getType()
public String getKind()
Protocol
getKind in interface Protocol
public abstract HRClient getClient(String hostUrl)
throws HRInvalidProtocolException
hostUrl - host URL
HRInvalidProtocolException - if unable to create client for
the protocol
public final void checkConnection(String url)
throws HRInvalidProtocolException,
HRConnectionException
url - server URL
HRInvalidProtocolException - when protocol attributes are invalid
HRConnectionException - if connecting remote repository failed
public final void ping(String url)
throws Exception
url - resource URL
IllegalArgumentException - if invalid protocol definition
IOException - if error connection resource
Exceptionpublic String toXmlString()
public String toString()
toString in class Objectprotected abstract StringAttributeMap extractAttributeMap()
protected abstract void applyAttributeMap(StringAttributeMap attributeMap)
attributeMap - attributes as attribute mapprotected String chckAttr(StringAttribute attribute)
attribute - attributes
public long getFlags()
Protocol
getFlags in interface Protocolpublic void setFlags(long flags)
Protocol
setFlags in interface Protocolflags - flag set
|
Esri Geoportal Server 1.0
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||