Package railo.runtime.rest

Examples of railo.runtime.rest.Result


public class RestSetResponse {
  public static String call(PageContext pc , Struct rsp) throws ApplicationException {
    HttpServletRequest req = pc.getHttpServletRequest();
   
    Result result = (Result) req.getAttribute("rest-result");
    if(result==null)throw new ApplicationException("not inside a REST Request");
   
    result.setCustomResponse(rsp);
   
   
    return null;
  }
View Full Code Here

TOP

Related Classes of railo.runtime.rest.Result

Copyright © 2018 www.massapicom. 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.