Esri Geoportal Server
1.2.9

com.esri.gpt.catalog.harvest.protocols
Class HarvestProtocolAgs2Agp

java.lang.Object
  extended by com.esri.gpt.catalog.harvest.protocols.HarvestProtocol
      extended by com.esri.gpt.catalog.harvest.protocols.AbstractHTTPHarvestProtocol
          extended by com.esri.gpt.catalog.harvest.protocols.HarvestProtocolAgs2Agp
All Implemented Interfaces:
Protocol, Serializable

public class HarvestProtocolAgs2Agp
extends AbstractHTTPHarvestProtocol

Ags2Agp protocol.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.esri.gpt.catalog.harvest.protocols.HarvestProtocol
HarvestProtocol.ProtocolType
 
Field Summary
static String NAME
          name of the protocol
 
Constructor Summary
HarvestProtocolAgs2Agp()
           
 
Method Summary
 StringAttributeMap getAttributeMap()
          Gets protocol attributes map.
 AgpDestination getDestination()
          Gets destination.
 String getDestinationHost()
          Gets destination host.
 long getFlags()
          Gets flag set.
 String getHostUrl()
          Gets host URL.
 String getKind()
          Gets protocol kind.
protected  String getReferrer()
          Gets referrer.
 ArcGISInfo getSource()
           
 String getSourceHost()
          Gets source host.
 HarvestProtocol.ProtocolType getType()
          Gets protocol type.
 Executor newExecutor(DataProcessor dataProcessor, ExecutionUnit unit, IWorker worker)
          Creates new executor.
 QueryBuilder newQueryBuilder(IterationContext context, String url)
          Creates new query builder.
 void ping(String url)
          Pings resource.
 void setAttributeMap(StringAttributeMap attributeMap)
          Sets protocol attributes map.
 void setFlags(long flags)
          Sets flag set.
 
Methods inherited from class com.esri.gpt.catalog.harvest.protocols.AbstractHTTPHarvestProtocol
getUserName, getUserPassword, setUserName, setUserPassword
 
Methods inherited from class com.esri.gpt.catalog.harvest.protocols.HarvestProtocol
applyAttributeMap, chckAttr, checkConnection, decryptString, encryptString, extractAttributeMap, getAdHoc, getClient, getDestinations, getPingSupported, setAdHoc, setDestinations, toString, toXmlString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
name of the protocol

See Also:
Constant Field Values
Constructor Detail

HarvestProtocolAgs2Agp

public HarvestProtocolAgs2Agp()
Method Detail

getSource

public ArcGISInfo getSource()

getDestination

public AgpDestination getDestination()
Gets destination.

Returns:
destination

getHostUrl

public String getHostUrl()
Gets host URL.

Returns:
host URL

getSourceHost

public String getSourceHost()
Gets source host.

Returns:
host name

getDestinationHost

public String getDestinationHost()
Gets destination host.

Returns:
host name

getAttributeMap

public StringAttributeMap getAttributeMap()
Description copied from interface: Protocol
Gets protocol attributes map. Used to exchange attributes with the form.

Specified by:
getAttributeMap in interface Protocol
Overrides:
getAttributeMap in class HarvestProtocol
Returns:
attributes map

setAttributeMap

public void setAttributeMap(StringAttributeMap attributeMap)
Description copied from interface: Protocol
Sets protocol attributes map. Used to exchange attributes with the form.

Specified by:
setAttributeMap in interface Protocol
Overrides:
setAttributeMap in class HarvestProtocol
Parameters:
attributeMap - attributes map

getFlags

public long getFlags()
Description copied from interface: Protocol
Gets flag set.

Specified by:
getFlags in interface Protocol
Overrides:
getFlags in class HarvestProtocol
Returns:
flags set

setFlags

public void setFlags(long flags)
Description copied from interface: Protocol
Sets flag set.

Specified by:
setFlags in interface Protocol
Overrides:
setFlags in class HarvestProtocol
Parameters:
flags - flag set

getKind

public String getKind()
Description copied from interface: Protocol
Gets protocol kind.

Specified by:
getKind in interface Protocol
Overrides:
getKind in class HarvestProtocol
Returns:
protocol kind

getType

public HarvestProtocol.ProtocolType getType()
Description copied from class: HarvestProtocol
Gets protocol type.

Specified by:
getType in class HarvestProtocol
Returns:
protocol type

newQueryBuilder

public QueryBuilder newQueryBuilder(IterationContext context,
                                    String url)
Description copied from interface: Protocol
Creates new query builder.

Parameters:
context - iteration context
url - url
Returns:
query builder

ping

public void ping(String url)
          throws Exception
Description copied from class: HarvestProtocol
Pings resource.

Overrides:
ping in class AbstractHTTPHarvestProtocol
Parameters:
url - resource URL
Throws:
IllegalArgumentException - if invalid protocol definition
IOException - if error connection resource
Exception

getReferrer

protected String getReferrer()
Gets referrer.

Returns:
referrer

newExecutor

public Executor newExecutor(DataProcessor dataProcessor,
                            ExecutionUnit unit,
                            IWorker worker)
Description copied from interface: Protocol
Creates new executor.

Specified by:
newExecutor in interface Protocol
Overrides:
newExecutor in class HarvestProtocol
Parameters:
dataProcessor - data processor
unit - execution unit
worker - worker
Returns:
executor

Esri Geoportal Server
1.2.9

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