com.plumtree.portalpages.rest.utils
Class RESTHelper

java.lang.Object
  extended by com.plumtree.portalpages.rest.utils.RESTHelper

public class RESTHelper
extends java.lang.Object

This class contains helper methods for the REST APIs.


Constructor Summary
RESTHelper()
           
 
Method Summary
 java.lang.String GetPOSTBody(IXPRequest _request)
          This helper method returns the POST body from the request input stream.
 void OutputError(IRESTError _error, IWebData _webData, boolean commentFiltered)
          This method outputs the JSON error results.
 void OutputXMLError(IRESTError _error, IWebData _webData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTHelper

public RESTHelper()
Method Detail

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)



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.