rewrite-config-servlet 2.0.0.Alpha2

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

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

public abstract class Request
extends BindingBuilder<Request,String>

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

Author:
Lincoln Baxter, III

Constructor Summary
Request()
           
 
Method Summary
static Request attribute(String property)
          Bind a value to the ServletRequest.setAttribute(String, Object) map.
static Request attribute(String property, Class<? extends Converter<?>> type)
          Bind a value to the ServletRequest.setAttribute(String, Object) map.
static Request attribute(String property, Class<Converter<?>> converterType, Class<? extends Validator<?>> validatorType)
          Bind a value to the ServletRequest.setAttribute(String, Object) map.
static Request parameter(String property)
          Bind a value to the ServletRequest.getParameterMap().
static Request parameter(String property, Class<? extends Converter<?>> type)
          Bind a value to the ServletRequest.getParameterMap() map.
static Request 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 Request attribute(String property)
Bind a value to the ServletRequest.setAttribute(String, Object) map.


attribute

public static Request 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 Request 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 Request parameter(String property)
Bind a value to the ServletRequest.getParameterMap().


parameter

public static Request 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 Request 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-config-servlet 2.0.0.Alpha2

Copyright © 2012 OCPsoft. All Rights Reserved.