public class ServiceContainerRequest extends PageWebResourceRequest implements IServiceInterfaceRequestSPI, IPageWebResourceRequest
IServiceInterfaceRequest
implementation that is used by the service container.PortletRequest.P3PUserInfos
Modifier and Type | Field and Description |
---|---|
protected ServiceInterfaceInstanceConfig |
baseServiceInterfaceInstanceConfig |
protected IBusinessContext |
businessContext |
protected String |
callerServiceInterfaceInstanceId |
protected boolean |
isPreview |
protected PageConfig |
pageConfig |
protected IPreferences |
preferences
Preferences of the current user for the current service interface
instance.
|
protected ServiceConfig |
serviceConfig |
protected ServiceContainerHttpServletRequest |
serviceContainerHttpServletRequest |
protected ServiceInstanceConfig |
serviceInstanceConfig |
protected int |
serviceInstanceDebugLevel |
protected ServiceInterfaceConfig |
serviceInterfaceConfig |
protected ServiceInterfaceInstanceConfig |
serviceInterfaceInstanceConfig |
protected String |
serviceInterfaceInstanceId |
protected SessionConfig |
sessionConfig |
mode
DEBUG_LEVEL_HIGH, DEBUG_LEVEL_LOW, DEBUG_LEVEL_MEDIUM, DEBUG_LEVEL_NONE
ACTION_PHASE, ACTION_SCOPE_ID, BASIC_AUTH, CCPP_PROFILE, CLIENT_CERT_AUTH, DIGEST_AUTH, EVENT_PHASE, FORM_AUTH, LIFECYCLE_PHASE, RENDER_HEADERS, RENDER_MARKUP, RENDER_PART, RENDER_PHASE, RESOURCE_PHASE, USER_INFO
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
ServiceContainerRequest(SessionConfig sessionConfig,
PortalRequestParameters portalParameters,
HttpServletRequest httpServletRequest,
ReplaceInterfacesStorage replaceInterfacesStorage) |
getApplicationRequestedPath, getBusinessContext, getCookie, getPageWebResource, getPortalMode, getSessionConfig, getWebsiteBaseURL, isPageCachedInFile
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, login, logout
getAsyncContext, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHttpServletRequest
getBusinessContext, getCookie, getCookies, getHeader, getPageWebResource, getSessionConfig, getWebsiteBaseURL
getAuthType, getContextPath, getRemoteUser, getRequestedSessionId, getScheme, getServerName, getServerPort, isRequestedSessionIdValid, isSecure
getApplicationRequestedPath, getContextPath, getPortalMode, getScheme, getServerName, getServerPort, isPageCachedInFile, isSecure
getAsyncContext, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocalName, getLocalPort, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, startAsync, startAsync
protected ServiceContainerHttpServletRequest serviceContainerHttpServletRequest
protected String serviceInterfaceInstanceId
protected ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig
protected ServiceInterfaceInstanceConfig baseServiceInterfaceInstanceConfig
protected ServiceInterfaceConfig serviceInterfaceConfig
protected ServiceInstanceConfig serviceInstanceConfig
protected String callerServiceInterfaceInstanceId
protected ServiceConfig serviceConfig
protected PageConfig pageConfig
protected SessionConfig sessionConfig
protected int serviceInstanceDebugLevel
protected boolean isPreview
protected IBusinessContext businessContext
protected IPreferences preferences
getPreferences()
method.public ServiceContainerRequest(SessionConfig sessionConfig, PortalRequestParameters portalParameters, HttpServletRequest httpServletRequest, ReplaceInterfacesStorage replaceInterfacesStorage) throws Exception
Exception
public void setCharacterEncoding(String encoding) throws UnsupportedEncodingException
setCharacterEncoding
in interface ServletRequest
setCharacterEncoding
in class ServletRequestWrapper
UnsupportedEncodingException
public PortletSession getPortletSession()
getPortletSession
in interface PortletRequest
public PortletSession getPortletSession(boolean create)
getPortletSession
in interface PortletRequest
public String getParameter(String name)
IPageWebResourceRequest
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 IPageWebResourceRequest.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
.
getParameter
in interface PortletRequest
getParameter
in interface ServletRequest
getParameter
in interface IPageWebResourceRequest
getParameter
in class PageWebResourceRequest
name
- a String
specifying the name of the parameterString
representing the single value of the parameterIPageWebResourceRequest.getParameterValues(java.lang.String)
public Enumeration<String> getParameterNames()
IPageWebResourceRequest
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
.getParameterNames
in interface PortletRequest
getParameterNames
in interface ServletRequest
getParameterNames
in interface IServiceInterfaceRequest
getParameterNames
in interface IPageWebResourceRequest
getParameterNames
in class PageWebResourceRequest
Enumeration
of String
objects, each String
containing the name
of a request parameter; or an empty Enumeration
if the request has no parameters.public String[] getParameterValues(String name)
IPageWebResourceRequest
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.
getParameterValues
in interface PortletRequest
getParameterValues
in interface ServletRequest
getParameterValues
in interface IPageWebResourceRequest
getParameterValues
in class PageWebResourceRequest
name
- a String
containing the name of the parameter the value of which is requestedString
objects containing the parameter values.IPageWebResourceRequest.getParameter(java.lang.String)
public Map<String,String[]> getParameterMap()
IPageWebResourceRequest
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
.
getParameterMap
in interface PortletRequest
getParameterMap
in interface ServletRequest
getParameterMap
in interface IServiceInterfaceRequest
getParameterMap
in interface IPageWebResourceRequest
getParameterMap
in class PageWebResourceRequest
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[]
).public Principal getUserPrincipal()
getUserPrincipal
in interface PortletRequest
getUserPrincipal
in interface HttpServletRequest
getUserPrincipal
in class HttpServletRequestWrapper
public boolean isUserInRole(String arg0)
isUserInRole
in interface PortletRequest
isUserInRole
in interface HttpServletRequest
isUserInRole
in class HttpServletRequestWrapper
public Locale getLocale()
getLocale
in interface PortletRequest
getLocale
in interface ServletRequest
getLocale
in class ServletRequestWrapper
public Enumeration<Locale> getLocales()
getLocales
in interface PortletRequest
getLocales
in interface ServletRequest
getLocales
in class ServletRequestWrapper
public Enumeration<String> getAttributeNames()
IPageWebResourceRequest
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.getAttributeNames
in interface PortletRequest
getAttributeNames
in interface ServletRequest
getAttributeNames
in interface IServiceInterfaceRequest
getAttributeNames
in interface IPageWebResourceRequest
getAttributeNames
in class PageWebResourceRequest
Enumeration
of strings containing the names of the request attributes, or an empty
Enumeration
if the request has no attributes available to it.public Object getAttribute(String key)
IPageWebResourceRequest
Object
, or null
if no attribute of the
given name exists.getAttribute
in interface PortletRequest
getAttribute
in interface ServletRequest
getAttribute
in interface IPageWebResourceRequest
getAttribute
in class PageWebResourceRequest
key
- a String
specifying the name of the attributeObject
containing the value of the attribute, or null
if the attribute does
not exist.public void setAttribute(String key, Object value)
IPageWebResourceRequest
setAttribute
in interface PortletRequest
setAttribute
in interface ServletRequest
setAttribute
in interface IPageWebResourceRequest
setAttribute
in class PageWebResourceRequest
key
- a String
specifying the name of the attributevalue
- the Object
to be storedpublic void removeAttribute(String key)
IPageWebResourceRequest
removeAttribute
in interface PortletRequest
removeAttribute
in interface ServletRequest
removeAttribute
in interface IPageWebResourceRequest
removeAttribute
in class PageWebResourceRequest
key
- a String
specifying the name of the attribute to be removedpublic String getProperty(String name)
getProperty
in interface PortletRequest
public Enumeration<String> getProperties(String name)
getProperties
in interface PortletRequest
public Enumeration<String> getPropertyNames()
getPropertyNames
in interface PortletRequest
public PortalContext getPortalContext()
getPortalContext
in interface PortletRequest
public PortletMode getPortletMode()
getPortletMode
in interface PortletRequest
public IPreferences getPreferences()
getPreferences
in interface PortletRequest
getPreferences
in interface IServiceInterfaceRequest
public String getResponseContentType()
getResponseContentType
in interface PortletRequest
public Enumeration<String> getResponseContentTypes()
getResponseContentTypes
in interface PortletRequest
public WindowState getWindowState()
getWindowState
in interface PortletRequest
public boolean isPortletModeAllowed(PortletMode mode)
isPortletModeAllowed
in interface PortletRequest
public boolean isWindowStateAllowed(WindowState state)
isWindowStateAllowed
in interface PortletRequest
public String getServiceInterfaceInstanceId()
getServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public PageConfig getPageConfig()
getPageConfig
in interface IServiceInterfaceRequest
public void setPageWebResource(PageWebResource pageWebResource)
setPageWebResource
in class PageWebResourceRequest
pageWebResource
- the page web resource.public void setSessionConfig(SessionConfig sessionConfig)
setSessionConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig)
public ServiceInterfaceInstanceConfig getServiceInterfaceInstanceConfig()
getServiceInterfaceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceInterfaceConfig(ServiceInterfaceConfig serviceInterfaceConfig)
public ServiceInterfaceConfig getServiceInterfaceConfig()
getServiceInterfaceConfig
in interface IServiceInterfaceRequest
public void setServiceInstanceConfig(ServiceInstanceConfig serviceInstanceConfig)
public ServiceInstanceConfig getServiceInstanceConfig()
getServiceInstanceConfig
in interface IServiceInterfaceRequest
public void setServiceConfig(ServiceConfig serviceConfig)
public ServiceConfig getServiceConfig()
getServiceConfig
in interface IServiceInterfaceRequest
public ServiceContainerHttpServletRequest getServiceContainerHttpServletRequest()
IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.getServiceContainerHttpServletRequest
in interface IServiceInterfaceRequestSPI
ServiceContainerHttpServletRequest
.public IServiceInterfaceRequestDispatcher getRequestDispatcher(String path)
getRequestDispatcher
in interface ServletRequest
getRequestDispatcher
in interface IServiceInterfaceRequest
getRequestDispatcher
in class ServletRequestWrapper
public void setServiceInstanceDebugLevel(int serviceInstanceDebugLevel)
public int getServiceInstanceDebugLevel()
getServiceInstanceDebugLevel
in interface IServiceInterfaceRequest
public void setServiceInterfaceInstanceParameters(Map<String,String[]> parameters) throws Exception
Exception
public FileParameter getFileParameter(String parameterName)
IPageWebResourceRequest
getFileParameter
in interface IServiceInterfaceRequest
getFileParameter
in interface IPageWebResourceRequest
getFileParameter
in class PageWebResourceRequest
parameterName
- the parameter name.public void setServiceInterfaceInstanceFileParameters(Map<String,FileParameter> parameters) throws Exception
Exception
public String getCallerServiceInterfaceInstanceId()
getCallerServiceInterfaceInstanceId
in interface IServiceInterfaceRequest
public void setCallerServiceInterfaceInstanceId(String callerServiceInterfaceInstanceId)
callerServiceInterfaceInstanceConfig
- The callerServiceInterfaceInstanceConfig to set.public IPreferences getCallerServiceInterfaceInstancePreferences()
IServiceInterfaceRequest
caller service interface instance
at level that corresponds to the menu level returned by IServiceInterfaceRequest.getCallerServiceInterfaceMenuLevel()
.getCallerServiceInterfaceInstancePreferences
in interface IServiceInterfaceRequest
public ServiceInterfaceMenuLevel getCallerServiceInterfaceMenuLevel()
IServiceInterfaceRequest
getCallerServiceInterfaceMenuLevel
in interface IServiceInterfaceRequest
public boolean isPreview()
IPageWebResourceRequest
isPreview
in interface IServiceInterfaceRequest
isPreview
in interface IPageWebResourceRequest
isPreview
in class PageWebResourceRequest
public void setPreview(boolean isPreview)
@Deprecated public int getMode()
getMode
in interface IServiceInterfaceRequest
@Deprecated public void setMode(int mode)
setMode
in interface IServiceInterfaceRequest
public VariableResolver getVariableResolver()
IServiceInterfaceRequestSPI
VariableResolver
for this request.getVariableResolver
in interface IServiceInterfaceRequestSPI
VariableResolver
for this request.public FunctionMapper getFunctionMapper()
IServiceInterfaceRequestSPI
FunctionMapper
for this request.getFunctionMapper
in interface IServiceInterfaceRequestSPI
FunctionMapper
for this request.public Map<String,String[]> getPrivateParameterMap()
getPrivateParameterMap
in interface PortletRequest
public Map<String,String[]> getPublicParameterMap()
getPublicParameterMap
in interface PortletRequest
public String getWindowID()
getWindowID
in interface PortletRequest
protected FunctionMapper createFunctionMapper(ServiceContainerResponse response)
FunctionMapper
based on the given response.response
- the response.FunctionMapper
.protected void setResponse(ServiceContainerResponse response)
response
- the response.public ServiceInterfaceInstanceConfig getBaseServiceInterfaceInstanceConfig()
public void setBaseServiceInterfaceInstanceConfig(ServiceInterfaceInstanceConfig baseServiceInterfaceInstanceConfig)
baseServiceInterfaceInstanceConfig
- the base interface instance.public ReplaceInterfacesStorage getReplaceInterfacesStorage()
getReplaceInterfacesStorage
in interface IServiceInterfaceRequestSPI
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.