com.plumtree.portalpages.rest.utils
Class RESTHelper
java.lang.Object
com.plumtree.portalpages.rest.utils.RESTHelper
public class RESTHelper
- extends java.lang.Object
This class contains helper methods for the REST APIs.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESTHelper
public RESTHelper()
GetPOSTBody
public java.lang.String GetPOSTBody(IXPRequest _request)
- This helper method returns the POST body from the request
input stream.
- Parameters:
_request
- The current request.
- Returns:
- the POST data.
OutputError
public void OutputError(IRESTError _error,
IWebData _webData,
boolean commentFiltered)
- This method outputs the JSON error results.
- Parameters:
_error
- The error to output._webData
- The current request web data.
OutputXMLError
public void OutputXMLError(IRESTError _error,
IWebData _webData)