Package org.tsugi.pox
Class IMSPOXRequest
- java.lang.Object
-
- org.tsugi.pox.IMSPOXRequest
-
public class IMSPOXRequest extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IMSPOXRequest(String bodyString)IMSPOXRequest(String oauth_consumer_key, String oauth_secret, HttpServletRequest request)IMSPOXRequest(HttpServletRequest request)
-
Method Summary
-
-
-
Field Detail
-
MAJOR_SUCCESS
public static final String MAJOR_SUCCESS
- See Also:
- Constant Field Values
-
MAJOR_FAILURE
public static final String MAJOR_FAILURE
- See Also:
- Constant Field Values
-
MAJOR_UNSUPPORTED
public static final String MAJOR_UNSUPPORTED
- See Also:
- Constant Field Values
-
MAJOR_PROCESSING
public static final String MAJOR_PROCESSING
- See Also:
- Constant Field Values
-
validMajor
public static final String[] validMajor
-
SEVERITY_ERROR
public static final String SEVERITY_ERROR
- See Also:
- Constant Field Values
-
SEVERITY_WARNING
public static final String SEVERITY_WARNING
- See Also:
- Constant Field Values
-
SEVERITY_STATUS
public static final String SEVERITY_STATUS
- See Also:
- Constant Field Values
-
validSeverity
public static final String[] validSeverity
-
MINOR_FULLSUCCESS
public static final String MINOR_FULLSUCCESS
- See Also:
- Constant Field Values
-
MINOR_NOSOURCEDIDS
public static final String MINOR_NOSOURCEDIDS
- See Also:
- Constant Field Values
-
MINOR_IDALLOC
public static final String MINOR_IDALLOC
- See Also:
- Constant Field Values
-
MINOR_OVERFLOWFAIL
public static final String MINOR_OVERFLOWFAIL
- See Also:
- Constant Field Values
-
MINOR_IDALLOCINUSEFAIL
public static final String MINOR_IDALLOCINUSEFAIL
- See Also:
- Constant Field Values
-
MINOR_INVALIDDATAFAIL
public static final String MINOR_INVALIDDATAFAIL
- See Also:
- Constant Field Values
-
MINOR_INCOMPLETEDATA
public static final String MINOR_INCOMPLETEDATA
- See Also:
- Constant Field Values
-
MINOR_PARTIALSTORAGE
public static final String MINOR_PARTIALSTORAGE
- See Also:
- Constant Field Values
-
MINOR_UNKNOWNOBJECT
public static final String MINOR_UNKNOWNOBJECT
- See Also:
- Constant Field Values
-
MINOR_DELETEFAILURE
public static final String MINOR_DELETEFAILURE
- See Also:
- Constant Field Values
-
MINOR_TARGETREADFAILURE
public static final String MINOR_TARGETREADFAILURE
- See Also:
- Constant Field Values
-
MINOR_SAVEPOINTERROR
public static final String MINOR_SAVEPOINTERROR
- See Also:
- Constant Field Values
-
MINOR_SAVEPOINTSYNCERROR
public static final String MINOR_SAVEPOINTSYNCERROR
- See Also:
- Constant Field Values
-
MINOR_UNKNOWNQUERY
public static final String MINOR_UNKNOWNQUERY
- See Also:
- Constant Field Values
-
MINOR_UNKNOWNVOCAB
public static final String MINOR_UNKNOWNVOCAB
- See Also:
- Constant Field Values
-
MINOR_TARGETISBUSY
public static final String MINOR_TARGETISBUSY
- See Also:
- Constant Field Values
-
MINOR_UNKNOWNEXTENSION
public static final String MINOR_UNKNOWNEXTENSION
- See Also:
- Constant Field Values
-
MINOR_UNAUTHORIZEDREQUEST
public static final String MINOR_UNAUTHORIZEDREQUEST
- See Also:
- Constant Field Values
-
MINOR_LINKFAILURE
public static final String MINOR_LINKFAILURE
- See Also:
- Constant Field Values
-
MINOR_UNSUPPORTED
public static final String MINOR_UNSUPPORTED
- See Also:
- Constant Field Values
-
validMinor
public static final String[] validMinor
-
postDom
public Document postDom
-
bodyElement
public Element bodyElement
-
headerElement
public Element headerElement
-
postBody
public String postBody
-
valid
public boolean valid
-
errorMessage
public String errorMessage
-
base_string
public String base_string
-
-
Constructor Detail
-
IMSPOXRequest
public IMSPOXRequest(String oauth_consumer_key, String oauth_secret, HttpServletRequest request)
-
IMSPOXRequest
public IMSPOXRequest(HttpServletRequest request)
-
IMSPOXRequest
public IMSPOXRequest(String bodyString)
-
-
Method Detail
-
getOperation
public String getOperation()
-
getOAuthConsumerKey
public String getOAuthConsumerKey()
-
getHeaderVersion
public String getHeaderVersion()
-
getHeaderMessageIdentifier
public String getHeaderMessageIdentifier()
-
getPostBody
public String getPostBody()
-
loadFromRequest
public void loadFromRequest(HttpServletRequest request)
-
parsePostBody
public void parsePostBody()
-
validateRequest
public void validateRequest(String oauth_consumer_key, String oauth_secret, HttpServletRequest request)
-
validateRequest
public void validateRequest(String oauth_consumer_key, String oauth_secret, HttpServletRequest request, String URL)
-
getResponseFailure
public String getResponseFailure(String desc, Properties minor)
-
getResponseFailure
public String getResponseFailure(String desc, Properties minor, String bodyString)
-
getResponse
public String getResponse(String description, String major, String severity, String messageId, Properties minor, String bodyString)
-
runTest
public static void runTest()
-
-