public class WebReportContext extends Object implements ReportContext
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_CONTEXT_PATH |
static String |
REPORT_CONTEXT_PARAMETER_JASPER_PRINT
Deprecated.
Replaced by
REPORT_CONTEXT_PARAMETER_JASPER_PRINT_ACCESSOR. |
static String |
REPORT_CONTEXT_PARAMETER_JASPER_PRINT_ACCESSOR |
static String |
REQUEST_PARAMETER_REPORT_CONTEXT_ID |
REQUEST_PARAMETER_APPLICATION_DOMAIN| Modifier and Type | Method and Description |
|---|---|
boolean |
containsParameter(String parameterName) |
String |
getId() |
static WebReportContext |
getInstance(javax.servlet.http.HttpServletRequest request) |
static WebReportContext |
getInstance(javax.servlet.http.HttpServletRequest request,
boolean create) |
static WebReportContext |
getInstance(javax.servlet.http.HttpServletRequest request,
String reportContextId) |
static WebReportContext |
getInstance(javax.servlet.http.HttpServletRequest request,
String reportContextId,
boolean create) |
Object |
getParameterValue(String parameterName) |
Map<String,Object> |
getParameterValues() |
String |
getSessionAttributeName()
public void setRequest(HttpServletRequest request)
{
//threadLocalRequest.set(request);
requestParameters.clear();
for(@SuppressWarnings("unchecked") Enumeration
|
void |
setParameterValue(String parameterName,
Object value) |
void |
setParameterValues(Map<String,Object> newValues) |
public static final String REQUEST_PARAMETER_REPORT_CONTEXT_ID
public static final String REPORT_CONTEXT_PARAMETER_JASPER_PRINT
REPORT_CONTEXT_PARAMETER_JASPER_PRINT_ACCESSOR.public static final String REPORT_CONTEXT_PARAMETER_JASPER_PRINT_ACCESSOR
public static final String APPLICATION_CONTEXT_PATH
public static final WebReportContext getInstance(javax.servlet.http.HttpServletRequest request)
public static final WebReportContext getInstance(javax.servlet.http.HttpServletRequest request, String reportContextId)
public static final WebReportContext getInstance(javax.servlet.http.HttpServletRequest request, boolean create)
public static final WebReportContext getInstance(javax.servlet.http.HttpServletRequest request, String reportContextId, boolean create)
public String getId()
getId in interface ReportContextpublic String getSessionAttributeName()
public Object getParameterValue(String parameterName)
getParameterValue in interface ReportContextpublic boolean containsParameter(String parameterName)
containsParameter in interface ReportContextpublic void setParameterValue(String parameterName, Object value)
setParameterValue in interface ReportContextpublic Map<String,Object> getParameterValues()
getParameterValues in interface ReportContextCopyright © 2017. All rights reserved.