DLESE Tools
v1.6.0

org.dlese.dpc.ndr.request
Class SignedNdrRequest

java.lang.Object
  extended by org.dlese.dpc.ndr.request.SimpleNdrRequest
      extended by org.dlese.dpc.ndr.request.NdrRequest
          extended by org.dlese.dpc.ndr.request.SignedNdrRequest
Direct Known Subclasses:
AddAgentRequest, AddAggregatorRequest, AddMetadataRequest, AddResourceRequest, DeleteRequest, ModifyAgentRequest, ModifyAggregatorRequest, ModifyMetadataProviderRequest, ModifyMetadataRequest, ModifyResourceRequest

public class SignedNdrRequest
extends NdrRequest

Class to communiate directly with NDR via NDRConnection. Builds the inputXML parameter that is sent as part a POST request.

Version:
$Id: SignedNdrRequest.java,v 1.4 2009/03/20 23:33:53 jweather Exp $
Author:
Jonathan Ostwald

Field Summary
protected  InputXML inputXML
          NOT YET DOCUMENTED
protected  NDRConstants.NDRObjectType objectType
          NOT YET DOCUMENTED
 
Fields inherited from class org.dlese.dpc.ndr.request.SimpleNdrRequest
handle, requestAgent, verb, verbose
 
Constructor Summary
SignedNdrRequest()
          Constructor for the SignedNdrRequest object
SignedNdrRequest(String verb)
          Constructor for the SignedNdrRequest object with specified verb.
SignedNdrRequest(String verb, String handle)
          Constructor for the SignedNdrRequest object with specified verb and handle.
 
Method Summary
 void authorizeToChange(String agentHandle)
           
 void authorizeToChange(String agentHandle, String action)
           
protected  NDRConnection getNDRConnection(String path, String inputXMLStr)
          Creates connection and adds payload in the form of inputXML parameter.
 void report(String path)
          NOT YET DOCUMENTED
 
Methods inherited from class org.dlese.dpc.ndr.request.NdrRequest
addCommand, addCommand, addCommand, addCommand, addDataStreamCmd, addDataStreamCmd, addDCStreamCmd, addDleseCommand, addDleseCommand, addNativeDataStreamCmd, addNativeDataStreamCmd, addNcsPropertyCmd, addNcsPropertyCmd, addNcsRelationshipCmd, addNcsRelationshipCmd, addOaiVisibilityCmd, addOaiVisibilityCmd, addQualifiedCommand, addQualifiedCommand, addServiceDescriptionCmd, addServiceDescriptionCmd, addStateCmd, addStateCmd, getComponent, getInputXML, getObjectType, getPayload, setDataInfoStream, setObjectType, submit, submit
 
Methods inherited from class org.dlese.dpc.ndr.request.SimpleNdrRequest
getDebug, getHandle, getNDRConnection, getRequestAgent, getVerb, getVerbose, makePath, pp, prtln, prtlnErr, report, setDebug, setHandle, setRequestAgent, setVerb, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputXML

protected InputXML inputXML
NOT YET DOCUMENTED


objectType

protected NDRConstants.NDRObjectType objectType
NOT YET DOCUMENTED

Constructor Detail

SignedNdrRequest

public SignedNdrRequest()
Constructor for the SignedNdrRequest object


SignedNdrRequest

public SignedNdrRequest(String verb)
Constructor for the SignedNdrRequest object with specified verb.

Parameters:
verb - NOT YET DOCUMENTED

SignedNdrRequest

public SignedNdrRequest(String verb,
                        String handle)
Constructor for the SignedNdrRequest object with specified verb and handle.

Parameters:
verb - NOT YET DOCUMENTED
handle - NOT YET DOCUMENTED
Method Detail

authorizeToChange

public void authorizeToChange(String agentHandle)

authorizeToChange

public void authorizeToChange(String agentHandle,
                              String action)

getNDRConnection

protected NDRConnection getNDRConnection(String path,
                                         String inputXMLStr)
                                  throws Exception
Creates connection and adds payload in the form of inputXML parameter.

Payload is the request objects's inputXML attribute, which is overidden by the inputXMLStr parameter if present. This allows a caller to create an inputXMLStr external to the request, which is helpful in debugging.

Overrides:
getNDRConnection in class NdrRequest
Parameters:
path - NOT YET DOCUMENTED
inputXMLStr - NOT YET DOCUMENTED
Returns:
The nDRConnection value
Throws:
Exception - NOT YET DOCUMENTED

report

public void report(String path)
NOT YET DOCUMENTED

Overrides:
report in class NdrRequest

DLESE Tools
v1.6.0