Class Request
java.lang.Object
org.ocpsoft.rewrite.config.DefaultOperationBuilder
org.ocpsoft.rewrite.servlet.config.HttpOperation
org.ocpsoft.rewrite.servlet.config.Request
- All Implemented Interfaces:
Operation,OperationBuilder
Responsible for performing actions on the current
HttpServletRequest- Author:
- Christian Kaltepoth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestsetAttribute(String name, Object value) Creates anHttpOperationthat callsServletRequest.setAttribute(String, Object)on the current request.static RequestsetCharacterEncoding(String encoding) Creates anHttpOperationthat callsServletRequest.setCharacterEncoding(String)on the current request.static RequestsetCharacterEncoding(Charset charset) Creates anHttpOperationthat callsServletRequest.setCharacterEncoding(String)on the current request.Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpOperation
perform, performHttpMethods inherited from class org.ocpsoft.rewrite.config.DefaultOperationBuilder
and
-
Constructor Details
-
Request
public Request()
-
-
Method Details
-
setCharacterEncoding
Creates anHttpOperationthat callsServletRequest.setCharacterEncoding(String)on the current request.- Parameters:
encoding- The encoding to apply
-
setCharacterEncoding
Creates anHttpOperationthat callsServletRequest.setCharacterEncoding(String)on the current request.- Parameters:
charset- The character set to apply
-
setAttribute
Creates anHttpOperationthat callsServletRequest.setAttribute(String, Object)on the current request.- Parameters:
name- The name of the request attributevalue- The value to set
-