|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.reactor.requests.ReactorRequest | +--com.oakgrovesystems.reactor.requests.Create
A request to create new Process Mediation Objects. The parameters must include a Set of objects from the com.oakgrovesystems.reactor.processMediation package.
Field Summary | |
static java.lang.String |
OBJECTS_PARM_NAME
The name of the request parameter that is the the set of objects to create. |
static java.lang.String |
REQUEST_TYPE
The request type of Create requests. |
protected boolean |
useLabelPaths
|
Fields inherited from class com.oakgrovesystems.reactor.requests.ReactorRequest |
operandOutputter, policyOutputter, processOutputter, statusOutputter |
Constructor Summary | |
Create()
Creates a Create request without specifying the authentication token to use to make the request. |
|
Create(java.lang.String authToken)
Creates a Create request that will use the specified authentication token |
Method Summary | |
java.util.Set |
getObjects()
returns the set of Objects to create. |
boolean |
getUseLabelPaths()
Returns whether references in request use label paths, and should be translated to IDs. |
java.util.List |
paramsToXML()
Returns a List of Elements representing the parameters of the request |
protected void |
parseParameters(org.jdom.Element params,
com.oakgrovesystems.reactor.LabelPathToIdMapper mapper)
Configures the parameters from the XML representation |
protected com.oakgrovesystems.reactor.ReactorResponse |
parseReturnValues(org.jdom.Element returnValues)
|
void |
setObjects(java.util.Set objects)
Specifies the set of Objects to create. |
void |
setUseLabelPaths(boolean value)
Specifies whether references in request use label paths, and should be translated to IDs. |
Methods inherited from class com.oakgrovesystems.reactor.requests.ReactorRequest |
configureFromXML, configureFromXML, createResponseXML, createResponseXML, createReturnValuesElem, createRtnValXML, getAuthToken, getLabelPath, getObjectId, getParameter, getParameter, getParameterNames, getRequestType, makeAuthTokenXML, makeObjectElement, makeOperandElement, makePolicyElement, makeProcessElement, makeReferenceElement, makeStatusElement, parseResponse, send, sendAsXML, sendViaHttp, setAuthToken, setParameter, setRequestType, toString, toXML |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String OBJECTS_PARM_NAME
public static final java.lang.String REQUEST_TYPE
protected boolean useLabelPaths
Constructor Detail |
public Create()
public Create(java.lang.String authToken)
authToken
- the authentication token to use to make the requestMethod Detail |
public void setObjects(java.util.Set objects)
objects
- The set of Objects to create.public java.util.Set getObjects()
public void setUseLabelPaths(boolean value)
value
- whether references in request use label pathspublic boolean getUseLabelPaths()
protected void parseParameters(org.jdom.Element params, com.oakgrovesystems.reactor.LabelPathToIdMapper mapper) throws FailedRequestException
ReactorRequest
parseParameters
in class ReactorRequest
params
- the 'parameters' Element of the request
FailedRequestException
- if the parameters can't be configured from the XML.public java.util.List paramsToXML() throws FailedRequestException
ReactorRequest
paramsToXML
in class ReactorRequest
FailedRequestException
protected com.oakgrovesystems.reactor.ReactorResponse parseReturnValues(org.jdom.Element returnValues) throws FailedRequestException
parseReturnValues
in class ReactorRequest
FailedRequestException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |