|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spagobi.utilities.PortletUtilities
Contains some SpagoBI's portlet utilities.
Constructor Summary | |
PortletUtilities()
|
Method Summary | |
static java.lang.String |
cleanString(java.lang.String original)
Cleans a string from spaces and tabulation characters. |
static java.lang.String |
createPortletURL(javax.servlet.http.HttpServletRequest aHttpServletRequest,
java.lang.String originalURL)
Starting from the original URL and the request, creates a string representing the Portlet URL. |
static java.lang.String |
createPortletURLForResource(javax.servlet.http.HttpServletRequest aHttpServletRequest,
java.lang.String resourceAbsolutePath)
Creates the particular portlet URL for a resource, given its path. |
static UploadedFile |
getFirstUploadedFile(javax.portlet.PortletRequest portletRequest)
Gets the first uploaded file from a portlet request. |
static java.lang.String |
getMessage(javax.portlet.PortletRequest portletRequest,
java.lang.String code,
java.lang.String bundle)
Gets a particular message from a Portlet Request, given its code and bundle information. |
static javax.portlet.PortletRequest |
getPortletRequest(it.eng.spago.base.RequestContainer aRequestContainer)
Gets the PortletRequest object from the RequestContainer . |
static javax.portlet.PortletResponse |
getPortletResponse(it.eng.spago.base.RequestContainer aRequestContainer)
Gets the PortletResponse object from the RequestContainer . |
static it.eng.spago.base.SourceBean |
getServiceRequestFromMultipartPortletRequest(javax.portlet.PortletRequest portletRequest)
Gets the service request from a Multipart Portlet Request. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PortletUtilities()
Method Detail |
public static java.lang.String createPortletURL(javax.servlet.http.HttpServletRequest aHttpServletRequest, java.lang.String originalURL)
aHttpServletRequest
- The request object at inputoriginalURL
- The starting original URL
public static java.lang.String createPortletURLForResource(javax.servlet.http.HttpServletRequest aHttpServletRequest, java.lang.String resourceAbsolutePath)
aHttpServletRequest
- The request object at inputresourceAbsolutePath
- The resource Absolute path
public static javax.portlet.PortletRequest getPortletRequest(it.eng.spago.base.RequestContainer aRequestContainer)
PortletRequest
object from the RequestContainer
.
aRequestContainer
- The input request container
public static javax.portlet.PortletResponse getPortletResponse(it.eng.spago.base.RequestContainer aRequestContainer)
PortletResponse
object from the RequestContainer
.
aRequestContainer
- The input request container
public static it.eng.spago.base.SourceBean getServiceRequestFromMultipartPortletRequest(javax.portlet.PortletRequest portletRequest)
serviceRequest
object.
portletRequest
- The input portlet request
serviceRequest
SourceBean containing the uploaded file.public static UploadedFile getFirstUploadedFile(javax.portlet.PortletRequest portletRequest)
UploadedFile
object.
portletRequest
- The input portlet request
public static java.lang.String cleanString(java.lang.String original)
original
- The input string
public static java.lang.String getMessage(javax.portlet.PortletRequest portletRequest, java.lang.String code, java.lang.String bundle)
portletRequest
- The input portlet requestcode
- The message's code stringbundle
- The message's bundel string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |