Package de.odysseus.calyxo.base.util

Examples of de.odysseus.calyxo.base.util.MapFacade


    return findVariable(variable);
  }

  private Map getApplicationScope() {
    if (applicationScope == null) {
      applicationScope = new MapFacade() {
        ServletContext servletContext = context.getServletContext();
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
View Full Code Here


    return applicationScope;
  }

  private Map getModuleScope() {
    if (moduleScope == null) {
      moduleScope = new MapFacade() {
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
          return context.getAttribute(key.toString());
View Full Code Here

    return moduleScope;
  }

  private Map getRequestScope() {
    if (requestScope == null) {
      requestScope = new MapFacade() {
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
          return request.getAttribute(key.toString());
View Full Code Here

    return requestScope;
  }

  private Map getSessionScope() {
    if (sessionScope == null) {
      sessionScope = new MapFacade() {
        HttpSession session = request.getSession(false);
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
View Full Code Here

    return sessionScope;
  }

  private Map getParam() {
    if (param == null) {
      param = new MapFacade() {
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
          return request.getParameter(key.toString());
View Full Code Here

    return involvedInputs.iterator();
  }

  private Map getInput() {
    if (input == null) {
      input = new MapFacade() {
        public Object get(Object key) {
          String name = (String)key;
          FormInputResult result =
            formResult.getFormInputResult(name);
          if (result == null) {
View Full Code Here

    return input;
  }

  private Map getProperty() {
    if (property == null) {
      property = new MapFacade() {
        public Object get(Object key) {
          String property = (String)key;
          FieldConfig field = formResult.getFormConfig().findFieldConfig(property);
          if (field == null) {
            throw new NoSuchElementException("Bad property name: " + key);
View Full Code Here

    return result;
  }

  private Map getApplicationScope() {
    if (applicationScope == null) {
      applicationScope = new MapFacade() {
        ServletContext servletContext = context.getServletContext();
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
View Full Code Here

    return applicationScope;
  }

  private Map getModuleScope() {
    if (moduleScope == null) {
      moduleScope = new MapFacade() {
        public Object get(Object key) {
          if (key == null) {
            return null;
          }
          return context.getAttribute(key.toString());
View Full Code Here

  /**
   * Get Map to serve context-relative paths by action identifier
   */
  public Map getPath() {
    if (path == null) {
      path = new MapFacade() {
        public Object get(Object key) {
          return context.getPath(key.toString());
        }
      };
    }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.base.util.MapFacade

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.