Package org.springframework.binding.mapping.impl

Examples of org.springframework.binding.mapping.impl.DefaultMapper.map()


            if (logger.isDebugEnabled()) {
              logger.debug("Setting up view->model mappings");
            }
            DefaultMapper mapper = new DefaultMapper();
            if (addModelBindingMappings(mapper, bindings, srcRequestContext, requestContext)) {
              return mapper.map(srcRequestContext, requestContext);
            }
          }
        }
      }
    }
View Full Code Here


    if (binderConfiguration != null) {
      addModelBindings(mapper, requestParameters.asMap().keySet(), model);
    } else {
      addDefaultMappings(mapper, requestParameters.asMap().keySet(), model);
    }
    return mapper.map(requestParameters, model);
  }

  private void addModelBindings(DefaultMapper mapper, Set parameterNames, Object model) {
    Iterator it = binderConfiguration.getBindings().iterator();
    while (it.hasNext()) {
View Full Code Here

    if (binderConfiguration != null) {
      addModelBindings(mapper, requestParameters.asMap().keySet(), model);
    } else {
      addDefaultMappings(mapper, requestParameters.asMap().keySet(), model);
    }
    return mapper.map(requestParameters, model);
  }

  /**
   * <p>
   * Adds a {@link DefaultMapping} for every configured view {@link Binding} for which there is an incoming request
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.