Esri Geoportal Server
1.0

com.esri.gpt.control.webharvest.protocol
Class ProtocolInvoker

java.lang.Object
  extended by com.esri.gpt.control.webharvest.protocol.ProtocolInvoker

public class ProtocolInvoker
extends Object

Invokes various methods on protocol through Reflection.


Constructor Summary
ProtocolInvoker()
           
 
Method Summary
static boolean getAutoApprove(Protocol protocol)
          Checks if 'auto-approve' is enabled.
static boolean getLockTitle(Protocol protocol)
          Checks if 'lock-title' is enabled.
static boolean getUpdateContent(Protocol protocol)
          Checks if 'deep harvest' is enabled.
static boolean getUpdateDefinition(Protocol protocol)
          Checks if 'xml generation' is enabled.
static void ping(Protocol protocol, String url)
          Invokes ping on the protocol.
static void setAutoApprove(Protocol protocol, boolean autoApprove)
          Enables/disables 'auto-approve'
static void setLockTitle(Protocol protocol, boolean lockTitle)
          Enables/disables 'lock-title'.
static void setUpdateContent(Protocol protocol, boolean enabled)
          Enables/disables 'deep harvest'
static void setUpdateDefinition(Protocol protocol, boolean enabled)
          Enables/disables 'xml generation'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolInvoker

public ProtocolInvoker()
Method Detail

ping

public static void ping(Protocol protocol,
                        String url)
                 throws Exception
Invokes ping on the protocol.

Parameters:
protocol - protocol
url - resource URL
Throws:
IllegalArgumentException - if invalid protocol definition
IOException - if error connection resource
Exception

getUpdateContent

public static boolean getUpdateContent(Protocol protocol)
Checks if 'deep harvest' is enabled.

Parameters:
protocol - protocol
Returns:
true if 'deep harvest' is enabled

setUpdateContent

public static void setUpdateContent(Protocol protocol,
                                    boolean enabled)
Enables/disables 'deep harvest'

Parameters:
protocol - protocol
enabled - true to enable 'deep harvest'

getUpdateDefinition

public static boolean getUpdateDefinition(Protocol protocol)
Checks if 'xml generation' is enabled.

Parameters:
protocol - protocol
Returns:
true if 'xml generation' is enabled

setUpdateDefinition

public static void setUpdateDefinition(Protocol protocol,
                                       boolean enabled)
Enables/disables 'xml generation'

Parameters:
protocol - protocol
enabled - true to enable 'xml generation'

getAutoApprove

public static boolean getAutoApprove(Protocol protocol)
Checks if 'auto-approve' is enabled.

Parameters:
protocol - protocol
Returns:
true if 'auto-approve' is enabled

setAutoApprove

public static void setAutoApprove(Protocol protocol,
                                  boolean autoApprove)
Enables/disables 'auto-approve'

Parameters:
protocol - protocol
autoApprove - true to enable 'auto-approve'

getLockTitle

public static boolean getLockTitle(Protocol protocol)
Checks if 'lock-title' is enabled. If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.

Parameters:
protocol - protocol
Returns:
true if 'lock-title' is enabled

setLockTitle

public static void setLockTitle(Protocol protocol,
                                boolean lockTitle)
Enables/disables 'lock-title'. If a flag is set, it means a title is locked and synchronizer is not allowed to update it, although all the rest of information is allowed to be updated.

Parameters:
protocol - protocol
lockTitle - true to enable 'lock-title'

Esri Geoportal Server
1.0

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