public class RequestScope extends java.lang.Object implements MadvocScope
Modifier and Type | Field and Description |
---|---|
protected ActionPathMacroInjector |
actionPathMacroInjector |
protected boolean |
encodeGetParams
Specifies if GET parameters should be encoded.
|
protected boolean |
ignoreEmptyRequestParams
Specifies if empty request parameters will be totally ignored as they were not sent at all.
|
protected boolean |
ignoreInvalidUploadFiles
Specifies if invalid and non-existing upload files should be
null . |
protected boolean |
injectAttributes
Specifies if attributes will be injected.
|
protected boolean |
injectParameters
Specifies if parameters will be injected.
|
protected InstancesInjector |
instancesInjector |
protected boolean |
treatEmptyParamsAsNull
Specifies if empty parameters will be injected as
null value. |
Constructor and Description |
---|
RequestScope() |
Modifier and Type | Method and Description |
---|---|
void |
inject(ActionRequest actionRequest,
Targets targets)
Injects action request context into the targets.
|
void |
inject(javax.servlet.ServletContext servletContext,
Targets targets)
Injects servlet context into the targets.
|
void |
inject(Targets targets)
Injects general context into the targets.
|
protected void |
injectAttributes(javax.servlet.http.HttpServletRequest servletRequest,
Targets targets)
Injects request attributes.
|
protected void |
injectParameters(javax.servlet.http.HttpServletRequest servletRequest,
Targets targets)
Inject request parameters.
|
protected void |
injectUploadedFiles(javax.servlet.http.HttpServletRequest servletRequest,
Targets targets)
Inject uploaded files from multipart request parameters.
|
void |
outject(ActionRequest actionRequest,
Targets targets)
Outjects targets into action request context.
|
void |
setEncodeGetParams(boolean encodeGetParams) |
void |
setIgnoreEmptyRequestParams(boolean ignoreEmptyRequestParams) |
void |
setIgnoreInvalidUploadFiles(boolean ignoreInvalidUploadFiles) |
void |
setInjectAttributes(boolean injectAttributes) |
void |
setInjectParameters(boolean injectParameters) |
void |
setTreatEmptyParamsAsNull(boolean treatEmptyParamsAsNull) |
protected final ActionPathMacroInjector actionPathMacroInjector
protected final InstancesInjector instancesInjector
protected boolean ignoreEmptyRequestParams
protected boolean treatEmptyParamsAsNull
null
value.protected boolean injectAttributes
protected boolean injectParameters
protected boolean encodeGetParams
protected boolean ignoreInvalidUploadFiles
null
.public void inject(ActionRequest actionRequest, Targets targets)
MadvocScope
inject
in interface MadvocScope
public void inject(javax.servlet.ServletContext servletContext, Targets targets)
MadvocScope
inject
in interface MadvocScope
public void inject(Targets targets)
MadvocScope
inject
in interface MadvocScope
protected void injectAttributes(javax.servlet.http.HttpServletRequest servletRequest, Targets targets)
protected void injectParameters(javax.servlet.http.HttpServletRequest servletRequest, Targets targets)
protected void injectUploadedFiles(javax.servlet.http.HttpServletRequest servletRequest, Targets targets)
public void outject(ActionRequest actionRequest, Targets targets)
MadvocScope
outject
in interface MadvocScope
public void setIgnoreEmptyRequestParams(boolean ignoreEmptyRequestParams)
public void setTreatEmptyParamsAsNull(boolean treatEmptyParamsAsNull)
public void setInjectAttributes(boolean injectAttributes)
public void setInjectParameters(boolean injectParameters)
public void setEncodeGetParams(boolean encodeGetParams)
public void setIgnoreInvalidUploadFiles(boolean ignoreInvalidUploadFiles)
Copyright © 2003-present Jodd Team