Interface PortletRequest
-
- All Superinterfaces:
RenderState
- All Known Subinterfaces:
ActionRequest,ClientDataRequest,EventRequest,HeaderRequest,RenderRequest,ResourceRequest
- All Known Implementing Classes:
ActionRequestWrapper,ClientDataRequestWrapper,EventRequestWrapper,HeaderRequestWrapper,PortletRequestWrapper,RenderRequestWrapper,ResourceRequestWrapper
public interface PortletRequest extends RenderState
ThePortletRequestdefines the base interface to provide client request information to a portlet. The portlet container uses specialized versions of this interface when invoking a portlet. The portlet container creates these objects and passes them as arguments to the corresponding request processing methods.The
PortletRequestalso provides access to the render state.- See Also:
RenderState,ActionRequest,EventRequest,RenderRequest,ResourceRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classPortletRequest.P3PUserInfosP3P user information constants.
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_PHASEString identifier for the portlet action lifecycle phase.static StringACTION_SCOPE_IDThe action scope ID that the portlet container uses for storing the current action scope as render parameter if thejakarta.portlet.actionScopedRequestAttributescontainer runtime option is used by the portlet.static StringBASIC_AUTHString identifier for Basic authentication.static StringCCPP_PROFILEUsed to retrieve an instance of thejavax.ccpp.Profilewith thegetAttributecall.static StringCLIENT_CERT_AUTHString identifier for Certification based authentication.static StringDIGEST_AUTHString identifier for Digest based authentication.static StringEVENT_PHASEString identifier for the portlet event lifecycle phase.static StringFORM_AUTHString identifier for Form based authentication.static StringHEADER_PHASEString identifier for the portlet render lifecycle phase.static StringLIFECYCLE_PHASEProvides the portlet lifecycle phase of the current request as request attribute.static StringRENDER_HEADERSThe RENDER_HEADERS is a possible value of the RENDER_PART request attribute and denotes that the portlet should set the intended headers and the portlet title of this render request.static StringRENDER_MARKUPThe RENDER_MARKUP is a possible value of the RENDER_PART request attribute and denotes that the portlet should produce its markup for this render request.static StringRENDER_PARTThe RENDER_PART portlet request attribute is set by portals that are streaming based and therefore need to split the render phase into two parts: first the RENDER_HEADERS part where the portlet should only set the header related data and the portlet title, and second the RENDER_MARKUP part in which the portlet should produce its markup.static StringRENDER_PHASEString identifier for the portlet render lifecycle phase.static StringRESOURCE_PHASEString identifier for the portlet resource serving lifecycle phase.static StringUSER_INFOUsed to retrieve user information attributes with thegetAttributecall.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description ObjectgetAttribute(String name)Returns the value of the named attribute as anObject, ornullif no attribute of the given name exists.Enumeration<String>getAttributeNames()Returns anEnumerationcontaining the names of the attributes available to this request.StringgetAuthType()Returns the name of the authentication scheme used for the connection between client and portal, for example,BASIC_AUTH,CLIENT_CERT_AUTH, a custom one ornullif there was no authentication.StringgetContextPath()Returns the context path which is the path prefix associated with the deployed portlet application.jakarta.servlet.http.Cookie[]getCookies()Returns an array containing all of the Cookie properties.LocalegetLocale()Returns the preferred Locale in which the portal will accept content.Enumeration<Locale>getLocales()Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale in which the portal will accept content for this request.StringgetParameter(String name)Deprecated.As of version 3.0.Map<String,String[]>getParameterMap()Deprecated.As of version 3.0.Enumeration<String>getParameterNames()Deprecated.As of version 3.0.String[]getParameterValues(String name)Deprecated.As of version 3.0.PortalContextgetPortalContext()Returns the context of the calling portal.PortletContextgetPortletContext()Returns thePortletContextof the portlet application the portlet is in.PortletSessiongetPortletSession()Returns the current portlet session or, if there is no current session, creates one and returns the new session.PortletSessiongetPortletSession(boolean create)Returns the current portlet session or, if there is no current session and the given flag istrue, creates one and returns the new session.PortletPreferencesgetPreferences()Returns the preferences object associated with the portlet.Map<String,String[]>getPrivateParameterMap()Deprecated.As of version 3.0.Enumeration<String>getProperties(String name)Returns all the values of the specified request property as aEnumerationofStringobjects.StringgetProperty(String name)Returns the value of the specified request property as aString.Enumeration<String>getPropertyNames()Returns aEnumerationof all the property names this request contains.Map<String,String[]>getPublicParameterMap()Deprecated.As of version 3.0.StringgetRemoteUser()Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.StringgetRequestedSessionId()Returns the session ID indicated in the client request.StringgetResponseContentType()Returns the portal preferred content type for the response.Enumeration<String>getResponseContentTypes()Gets a list of content types which the portal accepts for the response.StringgetScheme()Returns the name of the scheme used to make this request.StringgetServerName()Returns the host name of the server that received the request.intgetServerPort()Returns the port number on which this request was received.StringgetUserAgent()Returns the user agent for the request.PrincipalgetUserPrincipal()Returns a java.security.Principal object containing the name of the current authenticated user.StringgetWindowID()Returns the portlet window ID.booleanisPortletModeAllowed(PortletMode mode)Returns true, if the given portlet mode is a valid one to set for this portlet in the context of the current request.booleanisRequestedSessionIdValid()Checks whether the requested session ID is still valid.booleanisSecure()Returns a boolean indicating whether this request was made using a secure channel between client and the portal, such as HTTPS.booleanisUserInRole(String role)Returns a boolean indicating whether the authenticated user is included in the specified logical "role".booleanisWindowStateAllowed(WindowState state)Returns true, if the given window state is valid to be set for this portlet in the context of the current request.voidremoveAttribute(String name)Removes an attribute from this request.voidsetAttribute(String name, Object o)Stores an attribute in this request.-
Methods inherited from interface jakarta.portlet.RenderState
getPortletMode, getRenderParameters, getWindowState
-
-
-
-
Field Detail
-
USER_INFO
static final String USER_INFO
Used to retrieve user information attributes with thegetAttributecall. The user information is returned as aMapobject. The portlet must define the user information attribute it is interested in inside theuser-attributesection of the deployment descriptor. If an attribute is not supported by the current runtime system it will not show up in the user attribute map.
If the user-attribute is supported by the runtime system, but not defined for a particular user, then for that user the attribute exists in the returned map and the attribute has anullvalue.If the user-attribute is not defined for the current user it will not show up in the Map.
The value is
jakarta.portlet.userinfo.- See Also:
- Constant Field Values
-
CCPP_PROFILE
static final String CCPP_PROFILE
Used to retrieve an instance of thejavax.ccpp.Profilewith thegetAttributecall. The returned profile is based on the current portlet request and may contain additional CC/PP information set by the portal / portlet container.The value is
jakarta.portlet.ccpp.- Since:
- 2.0
- See Also:
- Constant Field Values
-
BASIC_AUTH
static final String BASIC_AUTH
String identifier for Basic authentication. Value "BASIC".- See Also:
- Constant Field Values
-
FORM_AUTH
static final String FORM_AUTH
String identifier for Form based authentication. Value "FORM".- See Also:
- Constant Field Values
-
CLIENT_CERT_AUTH
static final String CLIENT_CERT_AUTH
String identifier for Certification based authentication. Value "CLIENT_CERT".- See Also:
- Constant Field Values
-
DIGEST_AUTH
static final String DIGEST_AUTH
String identifier for Digest based authentication. Value "DIGEST".- See Also:
- Constant Field Values
-
ACTION_PHASE
static final String ACTION_PHASE
String identifier for the portlet action lifecycle phase. In this phase the portlet request and response are from typeActionRequestandActionResponse.The value of the constant is
ACTION_PHASE.- Since:
- 2.0
- See Also:
- Constant Field Values
-
EVENT_PHASE
static final String EVENT_PHASE
String identifier for the portlet event lifecycle phase. In this phase the portlet request and response are from typeEventRequestandEventResponse.The value of the constant is
EVENT_PHASE.- Since:
- 2.0
- See Also:
- Constant Field Values
-
HEADER_PHASE
static final String HEADER_PHASE
String identifier for the portlet render lifecycle phase. In this phase the portlet request and response are from typeHeaderRequestandHeaderResponse.The value of the constant is
HEADER_PHASE.- Since:
- 3.0
- See Also:
- Constant Field Values
-
RENDER_PHASE
static final String RENDER_PHASE
String identifier for the portlet render lifecycle phase. In this phase the portlet request and response are from typeRenderRequestandRenderResponse.The value of the constant is
RENDER_PHASE.- Since:
- 2.0
- See Also:
- Constant Field Values
-
RESOURCE_PHASE
static final String RESOURCE_PHASE
String identifier for the portlet resource serving lifecycle phase. In this phase the portlet request and response are from typeResourceRequestandResourceResponse.The value of the constant is
RESOURCE_PHASE.- Since:
- 2.0
- See Also:
- Constant Field Values
-
LIFECYCLE_PHASE
static final String LIFECYCLE_PHASE
Provides the portlet lifecycle phase of the current request as request attribute.Valid values are: ACTION_PHASE, EVENT_PHASE, RENDER_PHASE, RESOURCE_SERVING_PHASE.
The value of the constant is
jakarta.portlet.lifecylce_phase.- Since:
- 2.0
- See Also:
- Constant Field Values
-
RENDER_PART
static final String RENDER_PART
The RENDER_PART portlet request attribute is set by portals that are streaming based and therefore need to split the render phase into two parts: first the RENDER_HEADERS part where the portlet should only set the header related data and the portlet title, and second the RENDER_MARKUP part in which the portlet should produce its markup.Non-streaming portals will not set this attribute and thus the portlet should set headers, portlet title and produce its markup in a single render request.
The value of the constant is
jakarta.portlet.render_part.- Since:
- 2.0
- See Also:
- Constant Field Values
-
RENDER_HEADERS
static final String RENDER_HEADERS
The RENDER_HEADERS is a possible value of the RENDER_PART request attribute and denotes that the portlet should set the intended headers and the portlet title of this render request.The value of the constant is
RENDER_HEADERS.- Since:
- 2.0
- See Also:
- Constant Field Values
-
RENDER_MARKUP
static final String RENDER_MARKUP
The RENDER_MARKUP is a possible value of the RENDER_PART request attribute and denotes that the portlet should produce its markup for this render request.The value of the constant is
RENDER_MARKUP.- Since:
- 2.0
- See Also:
- Constant Field Values
-
ACTION_SCOPE_ID
static final String ACTION_SCOPE_ID
The action scope ID that the portlet container uses for storing the current action scope as render parameter if thejakarta.portlet.actionScopedRequestAttributescontainer runtime option is used by the portlet.The value is
jakarta.portlet.as.- Since:
- 2.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
isWindowStateAllowed
boolean isWindowStateAllowed(WindowState state)
Returns true, if the given window state is valid to be set for this portlet in the context of the current request.- Parameters:
state- window state to checked- Returns:
- true, if it is valid for this portlet in this request to change to the given window state
-
isPortletModeAllowed
boolean isPortletModeAllowed(PortletMode mode)
Returns true, if the given portlet mode is a valid one to set for this portlet in the context of the current request.- Parameters:
mode- portlet mode to check- Returns:
- true, if it is valid for this portlet in this request to change to the given portlet mode
-
getPreferences
PortletPreferences getPreferences()
Returns the preferences object associated with the portlet.- Returns:
- the portlet preferences
-
getPortletSession
PortletSession getPortletSession()
Returns the current portlet session or, if there is no current session, creates one and returns the new session.Creating a new portlet session will result in creating a new
HttpSessionon which the portlet session is based.To make sure the session is properly maintained, you must call this method before the response is committed. If the container is using cookies to maintain session integrity and is asked to create a new session when the response is committed, an
IllegalStateExceptionis thrown.- Returns:
- the portlet session
-
getPortletSession
PortletSession getPortletSession(boolean create)
Returns the current portlet session or, if there is no current session and the given flag istrue, creates one and returns the new session.If the given flag is
falseand there is no current portlet session, this method returnsnull.Creating a new portlet session will result in creating a new
HttpSessionon which the portlet session is based.To make sure the session is properly maintained, you must call this method before the response is committed. If the container is using cookies to maintain session integrity and is asked to create a new session when the response is committed, an
IllegalStateExceptionis thrown.- Parameters:
create-trueto create a new session,
falseto returnnullif there is no current session- Returns:
- the portlet session
-
getProperty
String getProperty(String name)
Returns the value of the specified request property as aString. If the request did not include a property of the specified name, this method returnsnull.A portlet can access portal/portlet-container specific properties through this method and, if available, the headers of the HTTP client request.
This method should only be used if the property has only one value. If the property might have more than one value, use
getProperties(java.lang.String).If this method is used with a multivalued parameter, the value returned is equal to the first value in the Enumeration returned by
getProperties.- Parameters:
name- aStringspecifying the property name- Returns:
- a
Stringcontaining the value of the requested property, ornullif the request does not have a property of that name. - Throws:
IllegalArgumentException- if name isnull.
-
getProperties
Enumeration<String> getProperties(String name)
Returns all the values of the specified request property as aEnumerationofStringobjects.If the request did not include any properties of the specified name, this method returns an empty
Enumeration. The property name is case insensitive. You can use this method with any request property.- Parameters:
name- aStringspecifying the property name- Returns:
- a
Enumerationcontaining the values of the requested property. If the request does not have any properties of that name return an emptyEnumeration. - Throws:
IllegalArgumentException- if name isnull.
-
getPropertyNames
Enumeration<String> getPropertyNames()
Returns aEnumerationof all the property names this request contains. If the request has no properties, this method returns an emptyEnumeration.- Returns:
- an
Enumerationof all the property names sent with this request; if the request has no properties, an emptyEnumeration.
-
getPortalContext
PortalContext getPortalContext()
Returns the context of the calling portal.- Returns:
- the context of the calling portal
-
getPortletContext
PortletContext getPortletContext()
Returns thePortletContextof the portlet application the portlet is in.- Returns:
- a
PortletContextobject, used by the caller to interact with its portlet container - Since:
- 3.0
- See Also:
PortletContext
-
getAuthType
String getAuthType()
Returns the name of the authentication scheme used for the connection between client and portal, for example,BASIC_AUTH,CLIENT_CERT_AUTH, a custom one ornullif there was no authentication.- Returns:
- one of the static members
BASIC_AUTH,FORM_AUTH,CLIENT_CERT_AUTH,DIGEST_AUTH(suitable for == comparison) indicating the authentication scheme, a custom one, ornullif the request was not authenticated.
-
getContextPath
String getContextPath()
Returns the context path which is the path prefix associated with the deployed portlet application. If the portlet application is rooted at the base of the web server URL namespace (also known as "default" context), this path must be an empty string. Otherwise, it must be the path the portlet application is rooted to, the path must start with a '/' and it must not end with a '/' character.To encode a URL the
PortletResponse.encodeURL(java.lang.String)method must be used.- Returns:
- a
Stringspecifying the portion of the request URL that indicates the context of the request - See Also:
PortletResponse.encodeURL(java.lang.String)
-
getRemoteUser
String getRemoteUser()
Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated.- Returns:
- a
Stringspecifying the login of the user making this request, ornullif the user login is not known.
-
getUserPrincipal
Principal getUserPrincipal()
Returns a java.security.Principal object containing the name of the current authenticated user.- Returns:
- a
java.security.Principalcontaining the name of the user making this request, ornullif the user has not been authenticated.
-
isUserInRole
boolean isUserInRole(String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". Roles and role membership can be defined using deployment descriptors. If the user has not been authenticated, the method returnsfalse.- Parameters:
role- aStringspecifying the name of the role- Returns:
- a
booleanindicating whether the user making this request belongs to a given role;falseif the user has not been authenticated.
-
getAttribute
Object getAttribute(String name)
Returns the value of the named attribute as anObject, ornullif no attribute of the given name exists.Attribute names should follow the same conventions as package names. This specification reserves names matching
java.*, andjakarta.*.In a distributed portlet web application the
Objectneeds to be serializable.- Parameters:
name- aStringspecifying the name of the attribute- Returns:
- an
Objectcontaining the value of the attribute, ornullif the attribute does not exist. - Throws:
IllegalArgumentException- if name isnull.
-
getAttributeNames
Enumeration<String> getAttributeNames()
Returns anEnumerationcontaining the names of the attributes available to this request. This method returns an emptyEnumerationif the request has no attributes available to it.- Returns:
- an
Enumerationof strings containing the names of the request attributes, or an emptyEnumerationif the request has no attributes available to it.
-
getParameter
@Deprecated String getParameter(String name)
Deprecated.As of version 3.0. UseRenderState.getRenderParameters()instead.Returns the value of a request parameter as aString, ornullif the parameter does not exist. Request parameters are extra information sent with the request. The returned parameter are "x-www-form-urlencoded" decoded.Only parameters targeted to the current portlet are accessible.
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.- Parameters:
name- aStringspecifying the name of the parameter- Returns:
- a
Stringrepresenting the single value of the parameter - Throws:
IllegalArgumentException- if name isnull.- See Also:
getParameterValues(java.lang.String)
-
getParameterNames
@Deprecated Enumeration<String> getParameterNames()
Deprecated.As of version 3.0. UseRenderState.getRenderParameters()instead.Returns anEnumerationofStringobjects containing the names of the parameters contained in this request. If the request has no parameters, the method returns an emptyEnumeration.Only parameters targeted to the current portlet are returned.
- Returns:
- an
EnumerationofStringobjects, eachStringcontaining the name of a request parameter; or an emptyEnumerationif the request has no parameters.
-
getParameterValues
@Deprecated String[] getParameterValues(String name)
Deprecated.As of version 3.0. UseRenderState.getRenderParameters()instead.Returns an array ofStringobjects containing all of the values the given request parameter has, ornullif 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.
- Parameters:
name- aStringcontaining the name of the parameter the value of which is requested- Returns:
- an array of
Stringobjects containing the parameter values. - Throws:
IllegalArgumentException- if name isnull.- See Also:
getParameter(java.lang.String)
-
getParameterMap
@Deprecated Map<String,String[]> getParameterMap()
Deprecated.As of version 3.0. UseRenderState.getRenderParameters()instead.Returns aMapof all public and private 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
Mapare from type String array (String[]).If no parameters exist this method returns an empty
Map.- Returns:
- an immutable
Mapcontaining parameter names as keys and parameter values as map values, or an emptyMapif 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[]).
-
isSecure
boolean isSecure()
Returns a boolean indicating whether this request was made using a secure channel between client and the portal, such as HTTPS.- Returns:
- true, if the request was made using a secure channel.
-
setAttribute
void setAttribute(String name, Object o)
Stores an attribute in this request.Attribute names should follow the same conventions as package names. Names beginning with
java.*,jakarta.*, andcom.sun.*are reserved.
If the value passed into this method isnull, the effect is the same as callingremoveAttribute(java.lang.String).- Parameters:
name- aStringspecifying the name of the attributeo- theObjectto be stored- Throws:
IllegalArgumentException- if name isnull.
-
removeAttribute
void removeAttribute(String name)
Removes an attribute from this request. This method is not generally needed, as attributes only persist as long as the request is being handled.Attribute names should follow the same conventions as package names. Names beginning with
java.*,jakarta.*, andcom.sun.*are reserved.- Parameters:
name- aStringspecifying the name of the attribute to be removed- Throws:
IllegalArgumentException- if name isnull.
-
getRequestedSessionId
String getRequestedSessionId()
Returns the session ID indicated in the client request. This session ID may not be a valid one, it may be an old one that has expired or has been invalidated. If the client request did not specify a session ID, this method returnsnull.- Returns:
- a
Stringspecifying the session ID, ornullif the request did not specify a session ID - See Also:
isRequestedSessionIdValid()
-
isRequestedSessionIdValid
boolean isRequestedSessionIdValid()
Checks whether the requested session ID is still valid.- Returns:
trueif this request has an id for a valid session in the current session context;falseotherwise- See Also:
getRequestedSessionId(),getPortletSession()
-
getResponseContentType
String getResponseContentType()
Returns the portal preferred content type for the response.The following restrictions apply:
- The content type only includes the MIME type, not the
character set. The character set of the response
can be retrieved via the
MimeResponse.getCharacterEncoding(). -
If the portlet has defined
'*'or'*/*'as supported content types in the portlet configuration, these may also be valid return values.
- Returns:
- preferred MIME type of the response
- The content type only includes the MIME type, not the
character set. The character set of the response
can be retrieved via the
-
getResponseContentTypes
Enumeration<String> getResponseContentTypes()
Gets a list of content types which the portal accepts for the response. This list is ordered with the most preferable types listed first.The following restrictions apply:
- The content type only includes the MIME type, not the character set.
-
If the portlet has defined
'*'or'*/*'as supported content types in the portlet configuration, these may also be valid return values.
- Returns:
- ordered list of MIME types for the response
-
getLocale
Locale getLocale()
Returns the preferred Locale in which the portal will accept content. The Locale may be based on the Accept-Language header of the client.- Returns:
- the preferred Locale in which the portal will accept content.
-
getLocales
Enumeration<Locale> getLocales()
Returns an Enumeration of Locale objects indicating, in decreasing order starting with the preferred locale in which the portal will accept content for this request. The Locales may be based on the Accept-Language header of the client.- Returns:
- an Enumeration of Locales, in decreasing order, in which the portal will accept content for this request
-
getScheme
String getScheme()
Returns the name of the scheme used to make this request. For example,http,https, orftp. Different schemes have different rules for constructing URLs, as noted in RFC 1738.- Returns:
- a
Stringcontaining the name of the scheme used to make this request
-
getServerName
String getServerName()
Returns the host name of the server that received the request.- Returns:
- a
Stringcontaining the name of the server to which the request was sent
-
getServerPort
int getServerPort()
Returns the port number on which this request was received.- Returns:
- an integer specifying the port number
-
getWindowID
String getWindowID()
Returns the portlet window ID. The portlet window ID is unique for this portlet window and is constant for the lifetime of the portlet window.This ID is the same that is used by the portlet container for scoping the portlet-scope session attributes.
- Returns:
- the portlet window ID
- Since:
- 2.0
-
getCookies
jakarta.servlet.http.Cookie[] getCookies()
Returns an array containing all of the Cookie properties.This method returns
nullif no cookies exist.- Returns:
- array of cookie properties, or
nullif no cookies exist. - Since:
- 2.0
- See Also:
PortletResponse.addProperty(Cookie)
-
getPrivateParameterMap
@Deprecated Map<String,String[]> getPrivateParameterMap()
Deprecated.As of version 3.0. UseRenderState.getRenderParameters()instead.Returns aMapof the private parameters of this request. Private parameters are all those not declared to be public parameters in the portlet deployment descriptor. They are not shared with other portlets or components. The returned parameters are "x-www-form-urlencoded" decoded.The values in the returned
Mapare from type String array (String[]).If no private parameters exist this method returns an empty
Map.- Returns:
- an immutable
Mapcontaining private parameter names as keys and private parameter values as map values, or an emptyMapif no private parameters exist. The keys in the parameter map are of type String. The values in the parameter map are of type String array (String[]). - Since:
- 2.0
-
getPublicParameterMap
@Deprecated Map<String,String[]> getPublicParameterMap()
Deprecated.As of version 3.0. UseRenderState.getRenderParameters()instead.Returns aMapof the public parameters of this request. Public parameters may be shared with other portlets or components as defined in the portlet deployment descriptor with thesupported-public-render-parameterelement. The returned parameters are "x-www-form-urlencoded" decoded.The values in the returned
Mapare from type String array (String[]).If no public parameters exist this method returns an empty
Map.- Returns:
- an immutable
Mapcontaining public parameter names as keys and public parameter values as map values, or an emptyMapif no public parameters exist. The keys in the parameter map are of type String. The values in the parameter map are of type String array (String[]). - Since:
- 2.0
-
getUserAgent
String getUserAgent()
Returns the user agent for the request.- Returns:
- The user agent string.
- Since:
- 3.0
-
-