Package org.apache.cocoon.environment

Examples of org.apache.cocoon.environment.Request.removeAttribute()


    void popCallContext() {
        // Clear the scope attribute
        Request request = this.getRequest();
        if (request != null) {
            request.removeAttribute(FOM_JavaScriptFlowHelper.FOM_SCOPE);
        }
        this.currentCall = this.currentCall.caller;
        // reset current page locals
        if (this.currentCall != null) {
            pageLocal.setDelegate(this.currentCall.currentPageLocal);
View Full Code Here


    protected void setState(RequestState status) {
        final Request req = ContextHelper.getRequest(this.context);
        if ( status != null ) {
            req.setAttributeREQUEST_STATE_KEY, status);
        } else {
            req.removeAttribute( REQUEST_STATE_KEY );
        }
    }
   
    /**
     * Create Application Context.
View Full Code Here

      Map objectModel,
      String name
      )
  {
    Request request = (Request)objectModel.get(Constants.REQUEST_OBJECT);
    request.removeAttribute(name);
  }

  /**
   * Get the specified attribute
   *
 
View Full Code Here

    void invalidate() {
        // Clear the scope attribute
        Request request = this.getRequest();
        if (request != null) {
            request.removeAttribute(FOM_JavaScriptFlowHelper.FOM_SCOPE);
        }
        else {
            // Cannot use logger here, as it might already be null
            System.err.println("Request is null. Might be trying to invalidate an already invalidated FOM_Cocoon instance.");
        }
View Full Code Here

    protected void setState(RequestState status) {
        final Request req = ContextHelper.getRequest(this.context);
        if ( status != null ) {
            req.setAttributeREQUEST_STATE_KEY, status);
        } else {
            req.removeAttribute( REQUEST_STATE_KEY );
        }
    }
   
    /**
     * Create Application Context.
View Full Code Here

    protected void setState(RequestState status) {
        final Request req = ContextHelper.getRequest(this.context);
        if ( status != null ) {
            req.setAttributeREQUEST_STATE_KEY, status);
        } else {
            req.removeAttribute( REQUEST_STATE_KEY );
        }
    }
   
    /**
     * Create Application Context.
View Full Code Here

     */
    protected Map prepareCommit(Map objectModel, String trans_place) {
        final Request request = ObjectModelHelper.getRequest(objectModel);

        Map data = (Map) request.getAttribute(trans_place);
        request.removeAttribute(trans_place);
        return data;
    }
}
View Full Code Here

                        request.setAttribute(key, val);
                    } else {
                        if (getLogger().isDebugEnabled()) {
                            getLogger().debug("Rolling back ['" + key + "']");
                        }
                        request.removeAttribute(key);
                    }
                }
            }
        }
View Full Code Here

     * @param id the form id
     */
    public static void remove(Map sitemapObjectModel, String id) {
        Request request = getRequest(sitemapObjectModel);

        request.removeAttribute(id);

        Session session = request.getSession(false);

        if (session!=null) {
            session.removeAttribute(id);
View Full Code Here

     * @param id the form id
     */
    public static void remove(Map sitemapObjectModel, String id) {
        Request request = getRequest(sitemapObjectModel);

        request.removeAttribute(id);

        Session session = request.getSession(false);

        if (session!=null) {
            session.removeAttribute(id);
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.