DLESE Tools
v1.6.0

org.dlese.dpc.ndr.apiproxy
Class NDRAPIProxy

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

public class NDRAPIProxy
extends Object

The proxy object represents the concrete implementation of the NDRAPI.

Author:
kmaull

Nested Class Summary
static class NDRAPIProxy.Service
           
 
Field Summary
static boolean DEBUG_ON
           
static boolean OFFLINE_TEST
           
 
Constructor Summary
NDRAPIProxy()
           
NDRAPIProxy(NDRAPIProxy.Service _service)
          Constructor based on the service ( FIND, GET, etc.
NDRAPIProxy(String verb, String handle)
           
 
Method Summary
 String getAgentHandle()
          Get the agent handle registered for this proxy object.
 String getConnectionHandle()
          ADDITIONAL METHODS
 InfoXML requestExec(String _input)
          Make the request to the NDR for executing the contents of the XML String representing an InputXML object.
 String searchDC(int _numResults, int _startPos, String _query)
          SEARCH API
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEBUG_ON

public static boolean DEBUG_ON

OFFLINE_TEST

public static boolean OFFLINE_TEST
Constructor Detail

NDRAPIProxy

public NDRAPIProxy()

NDRAPIProxy

public NDRAPIProxy(NDRAPIProxy.Service _service)
Constructor based on the service ( FIND, GET, etc. ).

Parameters:
_service - - the service ( usually the endpoint, FIND, GET, etc. )

NDRAPIProxy

public NDRAPIProxy(String verb,
                   String handle)
Method Detail

getAgentHandle

public String getAgentHandle()
Get the agent handle registered for this proxy object.

Returns:
The agent handle for this proxy object

requestExec

public InfoXML requestExec(String _input)
                    throws Exception
Make the request to the NDR for executing the contents of the XML String representing an InputXML object. This method added to allow requests to be submitted with arbitrary XML (rather than actually created from in InfoXML object.

Parameters:
_input - - the inputXML object to execute
Returns:
Throws:
Exception

searchDC

public String searchDC(int _numResults,
                       int _startPos,
                       String _query)
SEARCH API


getConnectionHandle

public String getConnectionHandle()
ADDITIONAL METHODS


DLESE Tools
v1.6.0