Package er.extensions.appserver

Examples of er.extensions.appserver.ERXResponse


          return WOApplication.application().pageWithName(pageName, context);
        }
        else if (_action != null) {
          return (WOActionResults) _action.valueInComponent(component);
        } else {
          ERXResponse response = new ERXResponse();
          //AK: we might want to be able to set this...
          response.appendContentString("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
          response.appendContentString("<html><body style='border:0; margin: 0; padding: 0; width:100%; height: 100%'>");
          doAppendChildrenToResponse(response, context);
          response.appendContentString("</body></html>");
          ERXResponseComponent comp = (ERXResponseComponent) WOApplication.application().pageWithName("ERXResponseComponent", context);
          comp.setResponse(response);
          comp.setComponent(context.page());
          return comp;
        }
View Full Code Here


        log.info(msg);
      }
      else if ("debug".equalsIgnoreCase(level)) {
        log.debug(msg);
      }
      return new ERXResponse();
    }
View Full Code Here

  /**
   * Overridden to make output XML compatible.
   */
    @Override
    public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
        WOResponse newResponse = ERXPatcher.DynamicElementsPatches.cleanupXHTML ? new ERXResponse() : woresponse;
        super.appendToResponse(newResponse, wocontext);
       
        ERXPatcher.DynamicElementsPatches.processResponse(this, newResponse, wocontext, 0, nameInContext(wocontext, wocontext.component()));
        if (ERXPatcher.DynamicElementsPatches.cleanupXHTML) {
          woresponse.appendContentString(newResponse.contentString());
View Full Code Here

      if(key != null) {
        ERXExpiringCache<Object, WOResponse> cache = ERXJavaScript.cache(wocontext.session());
        boolean render = cache.isStale(key);
        render |= ERXApplication.isDevelopmentModeSafe();
        if(render) {
          WOResponse newresponse = new ERXResponse();
          super.appendChildrenToResponse(newresponse, wocontext);
          newresponse.setHeader("application/x-javascript", "content-type");
          cache.setObjectForKey(newresponse, key);
        }
        src = wocontext.directActionURLForActionNamed(Script.class.getName() + "/" + key, null);
      }
    }
View Full Code Here

TOP

Related Classes of er.extensions.appserver.ERXResponse

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.