rewrite-impl-servlet 1.0.4.Final

org.ocpsoft.rewrite.servlet.config.bind
Class Request

java.lang.Object
  extended by org.ocpsoft.rewrite.bind.BindingBuilder
      extended by org.ocpsoft.rewrite.servlet.config.bind.Request
All Implemented Interfaces:
Binding, Converter<Object>, HasConverter, HasValidator, Retrieval, Submission, Validator<Object>

public abstract class Request
extends BindingBuilder

Responsible for binding to ServletRequest.setAttribute(String, Object) and ServletRequest.getParameterMap() contexts.

Author:
Lincoln Baxter, III

Constructor Summary
Request()
           
 
Method Summary
static BindingBuilder attribute(String property)
          Bind a value to the ServletRequest.setAttribute(String, Object) map.
static BindingBuilder attribute(String property, Class<? extends Converter<?>> type)
          Bind a value to the ServletRequest.setAttribute(String, Object) map.
static BindingBuilder attribute(String property, Class<Converter<?>> converterType, Class<? extends Validator<?>> validatorType)
          Bind a value to the ServletRequest.setAttribute(String, Object) map.
static BindingBuilder parameter(String property)
          Bind a value to the ServletRequest.getParameterMap().
static BindingBuilder parameter(String property, Class<? extends Converter<?>> type)
          Bind a value to the ServletRequest.getParameterMap() map.
static BindingBuilder parameter(String property, Class<Converter<?>> converterType, Class<? extends Validator<?>> validatorType)
          Bind a value to the ServletRequest.getParameterMap() map.
 boolean supportsRetrieval()
           
 boolean supportsSubmission()
           
 
Methods inherited from class org.ocpsoft.rewrite.bind.BindingBuilder
convert, convertedBy, convertedBy, getConverter, getValidator, validate, validatedBy, validatedBy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Retrieval
retrieve
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Submission
submit
 

Constructor Detail

Request

public Request()
Method Detail

attribute

public static BindingBuilder attribute(String property)
Bind a value to the ServletRequest.setAttribute(String, Object) map.


attribute

public static BindingBuilder attribute(String property,
                                       Class<? extends Converter<?>> type)
Bind a value to the ServletRequest.setAttribute(String, Object) map. Use the given Converter when retrieving any values.


attribute

public static BindingBuilder attribute(String property,
                                       Class<Converter<?>> converterType,
                                       Class<? extends Validator<?>> validatorType)
Bind a value to the ServletRequest.setAttribute(String, Object) map. Use the given Validator before attempting to submit any values. Use the given Converter when retrieving any values.


parameter

public static BindingBuilder parameter(String property)
Bind a value to the ServletRequest.getParameterMap().


parameter

public static BindingBuilder parameter(String property,
                                       Class<? extends Converter<?>> type)
Bind a value to the ServletRequest.getParameterMap() map. Use the given Converter when retrieving any values.


parameter

public static BindingBuilder parameter(String property,
                                       Class<Converter<?>> converterType,
                                       Class<? extends Validator<?>> validatorType)
Bind a value to the ServletRequest.getParameterMap() map. Use the given Validator before attempting to submit any values. Use the given Converter when retrieving any values.


supportsRetrieval

public boolean supportsRetrieval()

supportsSubmission

public boolean supportsSubmission()

rewrite-impl-servlet 1.0.4.Final

Copyright © 2012 OCPsoft. All Rights Reserved.