rewrite-config-servlet 2.0.0.Beta3

org.ocpsoft.rewrite.servlet.config
Class Request

java.lang.Object
  extended by org.ocpsoft.rewrite.config.DefaultOperationBuilder
      extended by org.ocpsoft.rewrite.servlet.config.HttpOperation
          extended by org.ocpsoft.rewrite.servlet.config.Request
All Implemented Interfaces:
Operation, OperationBuilder

public abstract class Request
extends HttpOperation

Responsible for performing actions on the current HttpServletRequest

Author:
Christian Kaltepoth

Constructor Summary
Request()
           
 
Method Summary
 Request setAttribute(String name, Object value)
          Creates an HttpOperation that calls ServletRequest.setAttribute(String, Object) on the current request.
 Request setCharacterEncoding(Charset charset)
          Creates an HttpOperation that calls ServletRequest.setCharacterEncoding(String) on the current request.
 Request setCharacterEncoding(String encoding)
          Creates an HttpOperation that calls ServletRequest.setCharacterEncoding(String) on the current request.
 
Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform, performHttp
 
Methods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Request

public Request()
Method Detail

setCharacterEncoding

public Request setCharacterEncoding(String encoding)
Creates an HttpOperation that calls ServletRequest.setCharacterEncoding(String) on the current request.

Parameters:
encoding - The encoding to apply

setCharacterEncoding

public Request setCharacterEncoding(Charset charset)
Creates an HttpOperation that calls ServletRequest.setCharacterEncoding(String) on the current request.

Parameters:
encoding - The character set to apply

setAttribute

public Request setAttribute(String name,
                            Object value)
Creates an HttpOperation that calls ServletRequest.setAttribute(String, Object) on the current request.

Parameters:
name - The name of the request attribute
value - The value to set

rewrite-config-servlet 2.0.0.Beta3

Copyright © 2013 OCPsoft. All Rights Reserved.