DLESE Tools
v1.6.0

org.dlese.dpc.ndr.request
Class SimpleNdrRequest

java.lang.Object
  extended by org.dlese.dpc.ndr.request.SimpleNdrRequest
Direct Known Subclasses:
FindResourceRequest, GetRequest, NdrRequest

public class SimpleNdrRequest
extends Object

Class to communiate directly with NDR via NDRConnection with no payload (url only - no InputXML object).

Version:
$Id: SimpleNdrRequest.java,v 1.8 2007/12/05 22:36:14 ostwald Exp $
Author:
Jonathan Ostwald

Field Summary
protected  String handle
          NOT YET DOCUMENTED
protected  String requestAgent
          NOT YET DOCUMENTED
protected  String verb
          NOT YET DOCUMENTED
protected static boolean verbose
          NOT YET DOCUMENTED
 
Constructor Summary
SimpleNdrRequest()
          Constructor for the SimpleNdrRequest object
SimpleNdrRequest(String verb)
          Constructor for the SimpleNdrRequest object with specified verb.
SimpleNdrRequest(String verb, String handle)
          Constructor for the SimpleNdrRequest object with specified verb and handle.
 
Method Summary
static boolean getDebug()
          Gets the debug attribute of the SimpleNdrRequest class
 String getHandle()
          Gets the handle attribute of the SimpleNdrRequest object
protected  NDRConnection getNDRConnection(String path)
          Instantiates and initializes an NDRConnection for communicating with the NDR server.
 String getRequestAgent()
          Gets the requestAgent attribute of the SimpleNdrRequest object
 String getVerb()
          Gets the verb attribute of the SimpleNdrRequest object
static boolean getVerbose()
          Gets the verbose attribute of the SimpleNdrRequest class
protected  String makePath()
           
protected static void pp(Node node)
          Prints a dom4j.Node as formatted string.
protected static void prtln(String s)
          Description of the Method
protected static void prtlnErr(String s)
          NOT YET DOCUMENTED
 void report()
          NOT YET DOCUMENTED
static void setDebug(boolean d)
          Sets the debug attribute of the SimpleNdrRequest class
 void setHandle(String handle)
          Sets the handle attribute of the SimpleNdrRequest object
 void setRequestAgent(String handle)
          Sets the requestAgent attribute of the SimpleNdrRequest object
 void setVerb(String verb)
          Sets the verb attribute of the SimpleNdrRequest object
static void setVerbose(boolean v)
          Sets the verbose attribute of the SimpleNdrRequest class
 InfoXML submit()
          NOT YET DOCUMENTED
 InfoXML submit(String path)
          NOT YET DOCUMENTED
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

protected static boolean verbose
NOT YET DOCUMENTED


verb

protected String verb
NOT YET DOCUMENTED


handle

protected String handle
NOT YET DOCUMENTED


requestAgent

protected String requestAgent
NOT YET DOCUMENTED

Constructor Detail

SimpleNdrRequest

public SimpleNdrRequest()
Constructor for the SimpleNdrRequest object


SimpleNdrRequest

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

Parameters:
verb - NOT YET DOCUMENTED

SimpleNdrRequest

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

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

setVerb

public void setVerb(String verb)
Sets the verb attribute of the SimpleNdrRequest object

Parameters:
verb - The new verb value

getVerb

public String getVerb()
Gets the verb attribute of the SimpleNdrRequest object

Returns:
The verb value

setRequestAgent

public void setRequestAgent(String handle)
Sets the requestAgent attribute of the SimpleNdrRequest object

Parameters:
handle - The new requestAgent value

getRequestAgent

public String getRequestAgent()
Gets the requestAgent attribute of the SimpleNdrRequest object

Returns:
The requestAgent value

setHandle

public void setHandle(String handle)
Sets the handle attribute of the SimpleNdrRequest object

Parameters:
handle - The new handle value

getHandle

public String getHandle()
Gets the handle attribute of the SimpleNdrRequest object

Returns:
The handle value

getNDRConnection

protected NDRConnection getNDRConnection(String path)
                                  throws Exception
Instantiates and initializes an NDRConnection for communicating with the NDR server.

Parameters:
path - NOT YET DOCUMENTED
Returns:
The nDRConnection value
Throws:
Exception - NOT YET DOCUMENTED

makePath

protected String makePath()
                   throws Exception
Throws:
Exception

submit

public InfoXML submit()
               throws Exception
NOT YET DOCUMENTED

Returns:
NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED

submit

public InfoXML submit(String path)
               throws Exception
NOT YET DOCUMENTED

Parameters:
path - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED

getVerbose

public static boolean getVerbose()
Gets the verbose attribute of the SimpleNdrRequest class

Returns:
The verbose value

setVerbose

public static void setVerbose(boolean v)
Sets the verbose attribute of the SimpleNdrRequest class

Parameters:
v - The new verbose value

setDebug

public static void setDebug(boolean d)
Sets the debug attribute of the SimpleNdrRequest class

Parameters:
d - The new debug value

getDebug

public static boolean getDebug()
Gets the debug attribute of the SimpleNdrRequest class

Returns:
The debug value

report

public void report()
NOT YET DOCUMENTED


pp

protected static void pp(Node node)
Prints a dom4j.Node as formatted string.

Parameters:
node - NOT YET DOCUMENTED

prtln

protected static void prtln(String s)
Description of the Method

Parameters:
s - Description of the Parameter

prtlnErr

protected static void prtlnErr(String s)
NOT YET DOCUMENTED

Parameters:
s - NOT YET DOCUMENTED

DLESE Tools
v1.6.0