Examples of IERXRestWriter


Examples of er.rest.format.IERXRestWriter

   */
  public WOResponse generateResponse() {
    boolean isStrictMode = ERXProperties.booleanForKeyWithDefault("ERXRest.strictMode", true);
   
    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
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.