DLESE Tools
v1.6.0

org.dlese.dpc.ndr.apiproxy
Class NDRConstants

java.lang.Object
  extended by org.dlese.dpc.ndr.apiproxy.NDRConstants

public class NDRConstants
extends Object

This class contains constants that are used in communicating with the NDR

Author:
ostwald

Nested Class Summary
static class NDRConstants.NDRObjectType
          Supported object types of the NDR, used in InputXML instances and responses.
static class NDRConstants.OAIVisibilty
          Permitted values for Metadata and MetadataProvider Objects in the NDR to control their visibility to the OAI.
static class NDRConstants.ObjectState
          Permissible states for an NDRObject.
static class NDRConstants.Service
           
static class NDRConstants.SupportedCommand
           
 
Field Summary
static Namespace AUTH_NAMESPACE
           
static Namespace DLESE_NAMESPACE
           
static String DLESE_TEST_AGENT
           
static Namespace FEDORA_MODEL_NAMESPACE
           
static Namespace FEDORA_VIEW_NAMESPACE
           
static String FEED_EATER_AGENT
           
static String MASTER_AGENT
           
static String MASTER_COLLECTION
          NOT YET DOCUMENTED
static String NCS_FINAL_STATUS
           
static Namespace NCS_NAMESPACE
           
static String NCS_TEST_AGENT
           
static int NDR_CONNECTION_TIMEOUT
          Timeout for connections to ndr server in millis
static String NSDL_DC_METADATA_NAMESPACE
          Used in nsdl_dc_info data streams
static Namespace NSDL_NAMESPACE
           
static Namespace OAI_NAMESPACE
           
static Namespace WIKI_NAMESPACE
           
 
Constructor Summary
NDRConstants()
           
 
Method Summary
static String getMasterAgent()
           
static String getMasterCollection()
           
static String getNcsAgent()
           
static String getNdrApiBaseUrl()
           
static NDRConstants.NDRObjectType getNdrResponseType(String tag)
           
static File getPrivateKeyFile()
           
static void init(String ndrApiBaseUrl, String ncsAgentHandle, String privateKeyPath)
          Convenience method to assign values to the three values required for signed request to NDR.
static void setMasterAgent(String handle)
           
static void setMasterCollection(String handle)
           
static void setNcsAgent(String agentHandle)
           
static void setNdrApiBaseUrl(String url)
           
static void setPrivateKeyFile(File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DLESE_TEST_AGENT

public static final String DLESE_TEST_AGENT
See Also:
Constant Field Values

NCS_TEST_AGENT

public static final String NCS_TEST_AGENT
See Also:
Constant Field Values

NDR_CONNECTION_TIMEOUT

public static final int NDR_CONNECTION_TIMEOUT
Timeout for connections to ndr server in millis

See Also:
Constant Field Values

NSDL_DC_METADATA_NAMESPACE

public static final String NSDL_DC_METADATA_NAMESPACE
Used in nsdl_dc_info data streams

See Also:
Constant Field Values

MASTER_COLLECTION

public static String MASTER_COLLECTION
NOT YET DOCUMENTED


MASTER_AGENT

public static String MASTER_AGENT

FEED_EATER_AGENT

public static String FEED_EATER_AGENT

NCS_NAMESPACE

public static final Namespace NCS_NAMESPACE

DLESE_NAMESPACE

public static final Namespace DLESE_NAMESPACE

AUTH_NAMESPACE

public static final Namespace AUTH_NAMESPACE

FEDORA_MODEL_NAMESPACE

public static final Namespace FEDORA_MODEL_NAMESPACE

FEDORA_VIEW_NAMESPACE

public static final Namespace FEDORA_VIEW_NAMESPACE

NSDL_NAMESPACE

public static final Namespace NSDL_NAMESPACE

OAI_NAMESPACE

public static final Namespace OAI_NAMESPACE

WIKI_NAMESPACE

public static final Namespace WIKI_NAMESPACE

NCS_FINAL_STATUS

public static final String NCS_FINAL_STATUS
See Also:
Constant Field Values
Constructor Detail

NDRConstants

public NDRConstants()
Method Detail

init

public static void init(String ndrApiBaseUrl,
                        String ncsAgentHandle,
                        String privateKeyPath)
Convenience method to assign values to the three values required for signed request to NDR.


getNdrResponseType

public static NDRConstants.NDRObjectType getNdrResponseType(String tag)

getNdrApiBaseUrl

public static String getNdrApiBaseUrl()

setNdrApiBaseUrl

public static void setNdrApiBaseUrl(String url)

setNcsAgent

public static void setNcsAgent(String agentHandle)

getNcsAgent

public static String getNcsAgent()

setPrivateKeyFile

public static void setPrivateKeyFile(File file)

getPrivateKeyFile

public static File getPrivateKeyFile()

setMasterCollection

public static void setMasterCollection(String handle)

getMasterCollection

public static String getMasterCollection()

setMasterAgent

public static void setMasterAgent(String handle)

getMasterAgent

public static String getMasterAgent()

DLESE Tools
v1.6.0