Examples of ERXWORestResponse


Examples of er.rest.format.ERXWORestResponse

   *
   * @return a head response
   */
  public WOActionResults headAction() {
    WOResponse response = WOApplication.application().createResponseInContext(context());
    format().writer().appendHeadersToResponse(null, new ERXWORestResponse(response), restContext());
    return response;
  }
View Full Code Here

Examples of er.rest.format.ERXWORestResponse

    WOResponse response = WOApplication.application().createResponseInContext(_context);
    IERXRestWriter writer = _format.writer();
    if (writer == null) {
      throw new IllegalStateException("There is no writer for the format '" + _format.name() + "'.");
    }
    writer.appendToResponse(_responseNode, new ERXWORestResponse(response), _format.delegate(), _restContext);
    if (_headers.count() > 0) {
      for (String key : _headers.keySet()) {
        response.setHeader(_headers.objectForKey(key), key);
      }
    }
View Full Code Here

Examples of er.rest.format.ERXWORestResponse

   *            the writer to use
   * @return a string representation of this request node using the given IERXRestWriter
   */
  public String toString(IERXRestWriter writer, ERXRestFormat.Delegate delegate, ERXRestContext context) {
    ERXResponse octopusHair = new ERXResponse();
    writer.appendToResponse(this, new ERXWORestResponse(octopusHair), delegate, context);
    return octopusHair.contentString();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.