Esri Geoportal Server
1.2.9

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

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.HarvestProtocolAgp2Agp
All Implemented Interfaces:
Protocol, Serializable

public class HarvestProtocolAgp2Agp
extends AbstractHTTPHarvestProtocol

Agp2Agp 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 long DEFAULT_MAX_ITEMS_AGP2AGP
           
static String DEFAULT_MAX_ITEMS_AGP2AGP_KEY
           
static String NAME
          name of the protocol
 
Constructor Summary
HarvestProtocolAgp2Agp(boolean stopOnError)
          Creates instance of the protocol
 
Method Summary
static Long getAgp2AgpMaxItems()
          Gets AGP2AGP max items.
 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.
 AgpSource getSource()
          Gets source.
 String getSourceHost()
          Gets source host.
 boolean getStopOnError()
          Checks if stop harvesting on error.
 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 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, ping, 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

DEFAULT_MAX_ITEMS_AGP2AGP

public static final long DEFAULT_MAX_ITEMS_AGP2AGP
See Also:
Constant Field Values

DEFAULT_MAX_ITEMS_AGP2AGP_KEY

public static final String DEFAULT_MAX_ITEMS_AGP2AGP_KEY
See Also:
Constant Field Values

NAME

public static final String NAME
name of the protocol

See Also:
Constant Field Values
Constructor Detail

HarvestProtocolAgp2Agp

public HarvestProtocolAgp2Agp(boolean stopOnError)
Creates instance of the protocol

Parameters:
stopOnError - true to stop harvesting on error
Method Detail

getStopOnError

public boolean getStopOnError()
Checks if stop harvesting on error.

Returns:
true to stop harvesting on error

getSource

public AgpSource getSource()
Gets source.

Returns:
source

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

getReferrer

protected String getReferrer()
Gets referrer.

Returns:
referrer

getAgp2AgpMaxItems

public static Long getAgp2AgpMaxItems()
Gets AGP2AGP max items.

Returns:
return AGP2AGP max items

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.