Class ServerServicesInterceptorRequestWrapper
java.lang.Object
com.esri.arcgis.enterprise.interceptor.server.ServerServicesInterceptorRequestWrapper
- All Implemented Interfaces:
IInterceptorRequest
-
Constructor Summary
ConstructorsConstructorDescriptionServerServicesInterceptorRequestWrapper
(IInterceptorRequest interceptorRequest) -
Method Summary
Modifier and TypeMethodDescriptionMethod to fetch character encodingint
Method to get length of the content in the requestlong
Method to get length of the content in the requestMethod to fetch content-type of the requestReturns the value of the specified request header as a StringgetHeaders
(String name) Returns all the values of the specified request header as an Enumeration of String objects.jakarta.servlet.ServletInputStream
Retrieves the body of the request as binary data using a ServletInputStream.Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.getParameter
(String name) Returns the value of a request parameter as a String, or null if the parameter does not existReturns a java.util.Map of the parameters of this request.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 the values the given request parameter has, or null if the parameter does not exist.jakarta.servlet.http.Part
Gets the Part with the given name.Collection<jakarta.servlet.http.Part>
getParts()
Gets all the Part components of this requestRetrieves the body of the request as binary data using a BufferedReader.Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request
-
Constructor Details
-
ServerServicesInterceptorRequestWrapper
-
-
Method Details
-
getHeader
Description copied from interface:IInterceptorRequest
Returns the value of the specified request header as a String- Specified by:
getHeader
in interfaceIInterceptorRequest
- Parameters:
name
- - a String specifying the header name- Returns:
- a String containing the value of the requested header, or null if the request does not have a header of that name
-
getHeaders
Description copied from interface:IInterceptorRequest
Returns all the values of the specified request header as an Enumeration of String objects.- Specified by:
getHeaders
in interfaceIInterceptorRequest
- Parameters:
name
- - a String specifying the header name- Returns:
- an Enumeration containing the values of the requested header. If the request does not have any headers of that name return an empty enumeration
-
getMethod
Description copied from interface:IInterceptorRequest
Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT.- Specified by:
getMethod
in interfaceIInterceptorRequest
- Returns:
- a String specifying the name of the method with which this request was made
-
getParts
public Collection<jakarta.servlet.http.Part> getParts() throws IOException, jakarta.servlet.ServletExceptionDescription copied from interface:IInterceptorRequest
Gets all the Part components of this request- Specified by:
getParts
in interfaceIInterceptorRequest
- Returns:
- Collection of the Part components of this request
- Throws:
IOException
- if an I/O error occurred during the retrieval of the Part components of this requestjakarta.servlet.ServletException
- if this request is not of type multipart/form-data
-
getPart
public jakarta.servlet.http.Part getPart(String name) throws IOException, jakarta.servlet.ServletException Description copied from interface:IInterceptorRequest
Gets the Part with the given name.- Specified by:
getPart
in interfaceIInterceptorRequest
- Parameters:
name
- - the name of the requested Part- Returns:
- The Part with the given name
- Throws:
IOException
- if an I/O error occurred during the retrieval of the requested Partjakarta.servlet.ServletException
- if this request is not of type multipart/form-data
-
getRequestURI
Description copied from interface:IInterceptorRequest
Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request- Specified by:
getRequestURI
in interfaceIInterceptorRequest
- Returns:
- a String containing the part of the URL from the protocol name up to the query string
-
getInputStream
Description copied from interface:IInterceptorRequest
Retrieves the body of the request as binary data using a ServletInputStream.- Specified by:
getInputStream
in interfaceIInterceptorRequest
- Returns:
- a ServletInputStream object containing the body of the request
- Throws:
IOException
-
getReader
Description copied from interface:IInterceptorRequest
Retrieves the body of the request as binary data using a BufferedReader.- Specified by:
getReader
in interfaceIInterceptorRequest
- Returns:
- a BufferedReader object containing the body of the request
- Throws:
IOException
-
getParameterMap
Description copied from interface:IInterceptorRequest
Returns a java.util.Map of the parameters of this request.- Specified by:
getParameterMap
in interfaceIInterceptorRequest
- Returns:
- an immutable java.util.Map containing parameter names as keys and parameter values as map values. The keys in the parameter map are of type String. The values in the parameter map are of type String array.
-
getParameter
Description copied from interface:IInterceptorRequest
Returns the value of a request parameter as a String, or null if the parameter does not exist- Specified by:
getParameter
in interfaceIInterceptorRequest
- Parameters:
name
- - a String specifying the name of the parameter- Returns:
- a String representing the single value of the parameter
-
getParameterValues
Description copied from interface:IInterceptorRequest
Returns an array of String objects containing all the values the given request parameter has, or null if the parameter does not exist.- Specified by:
getParameterValues
in interfaceIInterceptorRequest
- Parameters:
name
- - a String containing the name of the parameter whose value is requested- Returns:
- an array of String objects containing the parameter's values
-
getParameterNames
Description copied from interface:IInterceptorRequest
Returns an 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.- Specified by:
getParameterNames
in interfaceIInterceptorRequest
- Returns:
- an Enumeration of String objects, each String containing the name of a request parameter; or an empty Enumeration if the request has no parameters
-
getCharacterEncoding
Description copied from interface:IInterceptorRequest
Method to fetch character encoding- Specified by:
getCharacterEncoding
in interfaceIInterceptorRequest
- Returns:
- A String that indicates the character encoding
-
getContentLength
Description copied from interface:IInterceptorRequest
Method to get length of the content in the request- Specified by:
getContentLength
in interfaceIInterceptorRequest
- Returns:
- An int value of the length of request contents
-
getContentLengthLong
Description copied from interface:IInterceptorRequest
Method to get length of the content in the request- Specified by:
getContentLengthLong
in interfaceIInterceptorRequest
- Returns:
- Long value of the length of request contents
-
getContentType
Description copied from interface:IInterceptorRequest
Method to fetch content-type of the request- Specified by:
getContentType
in interfaceIInterceptorRequest
- Returns:
- String that indicates the type of the request contents
-
getAppInterceptorRequest
-