Package org.apache.cocoon.environment

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


     * @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

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

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

     */
    private void unExposeVariables() {
        // "nested" variables are now simply removed
        Request request = ObjectModelHelper.getRequest(objectModel);
        if (var != null)
            request.removeAttribute(var);
        if (statusId != null)
            request.removeAttribute(statusId);
    }

    /**
 
View Full Code Here

        // "nested" variables are now simply removed
        Request request = ObjectModelHelper.getRequest(objectModel);
        if (var != null)
            request.removeAttribute(var);
        if (statusId != null)
            request.removeAttribute(statusId);
    }

    /**
     * Cycles through and discards up to 'n' items from the iteration.
     * We only know "up to 'n'", not "exactly n," since we stop cycling
View Full Code Here

                            getLogger().debug("rolling back ['"+key+"'] to ['"+val+"']");
                        request.setAttribute(key, val);
                    } else {
                        if (getLogger().isDebugEnabled())
                            getLogger().debug("rolling back ['"+key+"']");
                        request.removeAttribute(key);
                    }
                }
            }
        }
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

     */
    private void unExposeVariables() {
        // "nested" variables are now simply removed
        Request request = ObjectModelHelper.getRequest(objectModel);
        if (var != null)
            request.removeAttribute(var);
        if (statusId != null)
            request.removeAttribute(statusId);
    }

    /**
 
View Full Code Here

        // "nested" variables are now simply removed
        Request request = ObjectModelHelper.getRequest(objectModel);
        if (var != null)
            request.removeAttribute(var);
        if (statusId != null)
            request.removeAttribute(statusId);
    }

    /**
     * Cycles through and discards up to 'n' items from the iteration.
     * We only know "up to 'n'", not "exactly n," since we stop cycling
View Full Code Here

                            getLogger().debug("rolling back ['"+key+"'] to ['"+val+"']");
                        request.setAttribute(key, val);
                    } else {
                        if (getLogger().isDebugEnabled())
                            getLogger().debug("rolling back ['"+key+"']");
                        request.removeAttribute(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.