@StableMinor(version="12.0", sinceVersion="8.2") public interface IPageWebResourceRequest
PageWebResource
.Modifier and Type | Method and Description |
---|---|
String |
getApplicationRequestedPath()
Returns the path requested by the browser relative to the current
website base URL . |
Object |
getAttribute(String name)
Returns the value of the named attribute as an
Object , or null if no attribute of the
given name exists. |
Enumeration<String> |
getAttributeNames()
Returns an
Enumeration containing the names of the attributes available to this request. |
IBusinessContext |
getBusinessContext()
Returns the business context for this request.
|
String |
getContextPath()
Returns the context path which is the path prefix associated with the deployed application.
|
Cookie |
getCookie(String cookieName)
Returns the requested cookie or
null if the cookie does not exist in request. |
Cookie[] |
getCookies()
Returns the request's cookies.
|
FileParameter |
getFileParameter(String parameterName)
Returns the uploaded file by the given parameter name.
|
String |
getHeader(String header)
Returns the requested header or
null if the header does not exist in request. |
PageWebResource |
getPageWebResource()
Returns the
PageWebResource of this request. |
String |
getParameter(String name)
Returns the value of a request parameter as a
String , or null if the parameter does not
exist. |
Map<String,String[]> |
getParameterMap()
Returns a
Map of the parameters of this request. |
Enumeration<String> |
getParameterNames()
Returns an
Enumeration of String objects containing the names of the parameters
contained in this request. |
String[] |
getParameterValues(String name)
Returns an array of
String objects containing all of the values the given request parameter has, or
null if the parameter does not exist. |
IPortalMode |
getPortalMode()
Returns the requested portal mode.
|
String |
getScheme()
Returns the name of the scheme used to make this request.
|
String |
getServerName()
Returns the host name of the server that received the request.
|
int |
getServerPort()
Returns the port number on which this request was received.
|
SessionConfig |
getSessionConfig()
Returns the session of the user that has performed the request.
|
IWebsiteBaseURL |
getWebsiteBaseURL()
Returns the website's base URL accessed to generate this request.
|
boolean |
isPageCachedInFile()
Returns whether the requested page is cached in file.
|
boolean |
isPreview()
Returns whether the request is in preview mode.
|
boolean |
isSecure()
Returns a boolean indicating whether this request was made using a secure channel between client and the portal,
such as HTTPS.
|
void |
removeAttribute(String name)
Removes an attribute from this request.
|
void |
setAttribute(String name,
Object o)
Stores an attribute in this request.
|
String getParameter(String name)
String
, or null
if the parameter does not
exist. Request parameters are extra information sent with the request. The returned parameter are
"x-www-form-urlencoded" decoded.
This method should only be used if the parameter has only one value. If the parameter might have more than one
value, use getParameterValues(java.lang.String)
.
If this method is used with a multivalued parameter, the value returned is equal to the first value in the array
returned by getParameterValues
.
name
- a String
specifying the name of the parameterString
representing the single value of the parameterIllegalArgumentException
- if name is null
.getParameterValues(java.lang.String)
Enumeration<String> getParameterNames()
Enumeration
of String
objects containing the names of the parameters
contained in this request. If the request has no parameters, the method returns an empty Enumeration
.Enumeration
of String
objects, each String
containing the name
of a request parameter; or an empty Enumeration
if the request has no parameters.String[] getParameterValues(String name)
String
objects containing all of the values the given request parameter has, or
null
if the parameter does not exist. The returned parameters are "x-www-form-urlencoded" decoded.
If the parameter has a single value, the array has a length of 1.
name
- a String
containing the name of the parameter the value of which is requestedString
objects containing the parameter values.IllegalArgumentException
- if name is null
.getParameter(java.lang.String)
Map<String,String[]> getParameterMap()
Map
of the parameters of this request. Request parameters are extra information sent with
the request. The returned parameters are "x-www-form-urlencoded" decoded.
The values in the returned Map
are from type String array (String[]
).
If no parameters exist this method returns an empty Map
.
Map
containing parameter names as keys and parameter values as map values, or
an empty Map
if no parameters exist. The keys in the parameter map are of type String. The
values in the parameter map are of type String array (String[]
).SessionConfig getSessionConfig()
Cookie[] getCookies()
Cookie getCookie(String cookieName)
null
if the cookie does not exist in request.cookieName
- the requested cookie name.null
if the cookie does not exist in request.IllegalArgumentException
- if the parameter cookieName
is null
.String getHeader(String header)
null
if the header does not exist in request.header
- the requested header name.null
if the header does not exist in request.IllegalArgumentException
- if the parameter header
is null
.FileParameter getFileParameter(String parameterName)
parameterName
- the parameter name.IllegalArgumentException
- if the parameter parameterName
is null
.IPortalMode getPortalMode()
IBusinessContext getBusinessContext()
PageWebResource getPageWebResource()
PageWebResource
of this request.PageWebResource
of this request.IWebsiteBaseURL getWebsiteBaseURL()
String getContextPath()
String
specifying the portion of the request URL that indicates the context of the requestObject getAttribute(String name)
Object
, or null
if no attribute of the
given name exists.name
- a String
specifying the name of the attributeObject
containing the value of the attribute, or null
if the attribute does
not exist.IllegalArgumentException
- if name is null
.Enumeration<String> getAttributeNames()
Enumeration
containing the names of the attributes available to this request. This method
returns an empty Enumeration
if the request has no attributes available to it.Enumeration
of strings containing the names of the request attributes, or an empty
Enumeration
if the request has no attributes available to it.boolean isSecure()
void setAttribute(String name, Object o)
name
- a String
specifying the name of the attributeo
- the Object
to be storedIllegalArgumentException
- if name is null
.void removeAttribute(String name)
name
- a String
specifying the name of the attribute to be removedIllegalArgumentException
- if name is null
.String getScheme()
http
or https
.
Different schemes have different rules for constructing URLs, as noted in RFC 1738.String
containing the name of the scheme used to make this requestString getServerName()
String
containing the name of the server to which the request was sentint getServerPort()
boolean isPageCachedInFile()
boolean isPreview()
String getApplicationRequestedPath()
website base URL
.website base URL
.LumisXP 12.0.0.190809 - Copyright © 2006–2019 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.