Package net.sf.jasperreports.web.util
Class WebUtil
- java.lang.Object
-
- net.sf.jasperreports.web.util.WebUtil
-
public final class WebUtil extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_MESSAGE_KEY_CONFIG_PROPERTY_NOT_SETstatic StringPROPERTY_EMBED_COMPONENT_METADATAstatic StringPROPERTY_REPORT_EXECUTION_PATHstatic StringPROPERTY_REPORT_INTERACTION_PATHstatic StringPROPERTY_REPORT_RESOURCES_PATHstatic StringPROPERTY_REQUEST_PARAMETER_DYNAMIC_RESOURCEstatic StringPROPERTY_REQUEST_PARAMETER_RESOURCE_BUNDLEstatic StringPROPERTY_REQUEST_PARAMETER_RESOURCE_LOCALEstatic StringPROPERTY_REQUEST_PARAMETER_RESOURCE_URIstatic StringREQUEST_PARAMETER_ASYNC_REPORTstatic StringREQUEST_PARAMETER_PAGEstatic StringREQUEST_PARAMETER_PAGE_TIMESTAMPstatic StringREQUEST_PARAMETER_PAGE_UPDATEstatic StringREQUEST_PARAMETER_REPORT_URIstatic StringREQUEST_PARAMETER_RUN_REPORT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringdecodeUrl(String url)static StringencodeUrl(String url)static WebUtilgetInstance(JasperReportsContext jasperReportsContext)StringgetReportExecutionPath()StringgetReportInteractionPath()StringgetResourceBundleForResource(javax.servlet.http.HttpServletRequest request)LocalegetResourceLocale(javax.servlet.http.HttpServletRequest request)StringgetResourcePath(String resourcePath)StringgetResourcePath(String resourcePath, boolean isDynamic)StringgetResourcePath(String resourcesBasePath, String resourcePath)StringgetResourcePath(String resourcesBasePath, String resourcePath, boolean isDynamic)StringgetResourcePath(String resourcesBasePath, String resourcePath, String resourceBundleName, Locale locale)StringgetResourcesBasePath()StringgetResourcesPath()StringgetResourceUri(javax.servlet.http.HttpServletRequest request)booleanisComponentMetadataEmbedded()booleanisDynamicResource(javax.servlet.http.HttpServletRequest request)
-
-
-
Field Detail
-
REQUEST_PARAMETER_REPORT_URI
public static final String REQUEST_PARAMETER_REPORT_URI
- See Also:
- Constant Field Values
-
REQUEST_PARAMETER_ASYNC_REPORT
public static final String REQUEST_PARAMETER_ASYNC_REPORT
- See Also:
- Constant Field Values
-
REQUEST_PARAMETER_PAGE
public static final String REQUEST_PARAMETER_PAGE
- See Also:
- Constant Field Values
-
REQUEST_PARAMETER_PAGE_TIMESTAMP
public static final String REQUEST_PARAMETER_PAGE_TIMESTAMP
- See Also:
- Constant Field Values
-
REQUEST_PARAMETER_PAGE_UPDATE
public static final String REQUEST_PARAMETER_PAGE_UPDATE
- See Also:
- Constant Field Values
-
REQUEST_PARAMETER_RUN_REPORT
public static final String REQUEST_PARAMETER_RUN_REPORT
- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_PARAMETER_RESOURCE_URI
public static final String PROPERTY_REQUEST_PARAMETER_RESOURCE_URI
- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_PARAMETER_RESOURCE_LOCALE
public static final String PROPERTY_REQUEST_PARAMETER_RESOURCE_LOCALE
- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_PARAMETER_RESOURCE_BUNDLE
public static final String PROPERTY_REQUEST_PARAMETER_RESOURCE_BUNDLE
- See Also:
- Constant Field Values
-
PROPERTY_REQUEST_PARAMETER_DYNAMIC_RESOURCE
public static final String PROPERTY_REQUEST_PARAMETER_DYNAMIC_RESOURCE
- See Also:
- Constant Field Values
-
PROPERTY_REPORT_EXECUTION_PATH
public static final String PROPERTY_REPORT_EXECUTION_PATH
- See Also:
- Constant Field Values
-
PROPERTY_REPORT_INTERACTION_PATH
public static final String PROPERTY_REPORT_INTERACTION_PATH
- See Also:
- Constant Field Values
-
PROPERTY_REPORT_RESOURCES_PATH
public static final String PROPERTY_REPORT_RESOURCES_PATH
- See Also:
- Constant Field Values
-
PROPERTY_EMBED_COMPONENT_METADATA
public static final String PROPERTY_EMBED_COMPONENT_METADATA
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_CONFIG_PROPERTY_NOT_SET
public static final String EXCEPTION_MESSAGE_KEY_CONFIG_PROPERTY_NOT_SET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static WebUtil getInstance(JasperReportsContext jasperReportsContext)
-
getReportExecutionPath
public String getReportExecutionPath()
-
getReportInteractionPath
public String getReportInteractionPath()
-
getResourcesPath
public String getResourcesPath()
-
getResourceUri
public String getResourceUri(javax.servlet.http.HttpServletRequest request)
-
getResourceLocale
public Locale getResourceLocale(javax.servlet.http.HttpServletRequest request)
-
getResourceBundleForResource
public String getResourceBundleForResource(javax.servlet.http.HttpServletRequest request)
-
isDynamicResource
public boolean isDynamicResource(javax.servlet.http.HttpServletRequest request)
-
getResourcesBasePath
public String getResourcesBasePath()
-
getResourcePath
public String getResourcePath(String resourcesBasePath, String resourcePath, boolean isDynamic)
-
getResourcePath
public String getResourcePath(String resourcesBasePath, String resourcePath, String resourceBundleName, Locale locale)
-
isComponentMetadataEmbedded
public boolean isComponentMetadataEmbedded()
-
-