|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.http.rest.RESTBase
info.sswap.http.rest.MakePDG
public class MakePDG
A RESTful resource that handles requests to create a PDG.
Field Summary | |
---|---|
private static java.lang.String |
DESCRIPTION_RESOURCE
|
private static java.lang.String |
JSON_SCHEMA_RESOURCE
|
private static org.apache.log4j.Logger |
LOGGER
The logger for the makePDG task. |
Constructor Summary | |
---|---|
MakePDG()
|
Method Summary | |
---|---|
protected info.sswap.api.model.PDG |
doMakePDG(java.lang.String jsonData,
java.util.Map<java.lang.String,java.lang.String> prefixOverride)
Creates a PDG from JSON data. |
protected java.lang.String |
getDescriptionResource()
Returns the name of the resource (in the classpath) that contains the human-readable description about this RESTful interface |
protected java.lang.String |
getJSONSchemaResource()
Returns the name of the resource (in the classpath) that contains the JSON schema for the document acceptable by this resource |
javax.ws.rs.core.Response |
makePDG(javax.servlet.http.HttpServletRequest request)
Creates a PDG when a POST request is invoked on this resource. |
javax.ws.rs.core.Response |
makePDG(java.lang.String uploadedJson,
java.util.Map<java.lang.String,java.lang.String> prefixOverride)
|
Methods inherited from class info.sswap.http.rest.RESTBase |
---|
checkForUndefinedNS, clearLastForwardInTesting, displayDescription, displayJSONSchema, extractPrefixOverride, forward, getLastForwardInTesting, needsForwarding, rebuildPrefixOverrideQueryString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOGGER
private static final java.lang.String DESCRIPTION_RESOURCE
private static final java.lang.String JSON_SCHEMA_RESOURCE
Constructor Detail |
---|
public MakePDG()
Method Detail |
---|
public javax.ws.rs.core.Response makePDG(@Context javax.servlet.http.HttpServletRequest request)
request
- the HttpServletRequest object
public javax.ws.rs.core.Response makePDG(java.lang.String uploadedJson, java.util.Map<java.lang.String,java.lang.String> prefixOverride)
protected info.sswap.api.model.PDG doMakePDG(java.lang.String jsonData, java.util.Map<java.lang.String,java.lang.String> prefixOverride) throws java.lang.IllegalArgumentException
jsonData
- the data describing the PDG.
java.lang.IllegalArgumentException
protected java.lang.String getDescriptionResource()
RESTBase
getDescriptionResource
in class RESTBase
protected java.lang.String getJSONSchemaResource()
RESTBase
getJSONSchemaResource
in class RESTBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |