Class ServerServicesInterceptorResponseWrapper
java.lang.Object
com.esri.arcgis.enterprise.interceptor.server.ServerServicesInterceptorResponseWrapper
- All Implemented Interfaces:
IInterceptorResponse
public class ServerServicesInterceptorResponseWrapper
extends Object
implements IInterceptorResponse
-
Constructor Summary
ConstructorsConstructorDescriptionServerServicesInterceptorResponseWrapper(IInterceptorResponse interceptorResponse) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a response header with the given name and value.voidForces any content in the buffer to be written to the client.Returns the name of the character encodingReturns a String that indicates the content-type of the responseReturns the value of the specified request header as a StringGets the names of the headers of this response.getHeaders(String name) Gets the values of the response header with the given name.jakarta.servlet.ServletOutputStreamReturns a ServletOutputStream suitable for writing binary data in the response.Returns a PrintWriter object that can send character text to the client.booleanReturns a boolean indicating if the response has been committed.voidreset()Clears any data that exists in the buffer as well as the status code and headers.voidsendError(int sc) Sends an error response to the client using the specified status code and clears the buffer.voidSends an error response to the client using the specified status code and clears the buffer.voidsetCharacterEncoding(String var1) Sets the character encoding of the response being sent to the client.voidSets a response header with the given name and value.voidsetStatus(int sc) Sets the status code for this response.
-
Constructor Details
-
ServerServicesInterceptorResponseWrapper
-
-
Method Details
-
sendError
Description copied from interface:IInterceptorResponseSends an error response to the client using the specified status code and clears the buffer.- Specified by:
sendErrorin interfaceIInterceptorResponse- Parameters:
sc- - the error status codemsg- - the descriptive message- Throws:
IOException- If an input or output exception occurs
-
sendError
Description copied from interface:IInterceptorResponseSends an error response to the client using the specified status code and clears the buffer.- Specified by:
sendErrorin interfaceIInterceptorResponse- Parameters:
sc- - the error status code- Throws:
IOException- If an input or output exception occurs
-
setHeader
Description copied from interface:IInterceptorResponseSets a response header with the given name and value. If the header had already been set, the new value overwrites the previous one.- Specified by:
setHeaderin interfaceIInterceptorResponse- Parameters:
name- - the name of the headervalue- - the header value
-
addHeader
Description copied from interface:IInterceptorResponseAdds a response header with the given name and value.- Specified by:
addHeaderin interfaceIInterceptorResponse- Parameters:
name- - the name of the headervalue- - the additional header value
-
setStatus
Description copied from interface:IInterceptorResponseSets the status code for this response.- Specified by:
setStatusin interfaceIInterceptorResponse- Parameters:
sc- - the status code
-
getHeader
Description copied from interface:IInterceptorResponseReturns the value of the specified request header as a String- Specified by:
getHeaderin interfaceIInterceptorResponse- Parameters:
name- - the name of the response header whose value to return- Returns:
- the value of the response header with the given name, or null if no header with the given name has been set on this response
-
getHeaders
Description copied from interface:IInterceptorResponseGets the values of the response header with the given name.- Specified by:
getHeadersin interfaceIInterceptorResponse- Parameters:
name- - the name of the response header whose values to return- Returns:
- a Collection of the values of the response header with the given name
-
getHeaderNames
Description copied from interface:IInterceptorResponseGets the names of the headers of this response.- Specified by:
getHeaderNamesin interfaceIInterceptorResponse- Returns:
- a Collection of the names of the headers of this response
-
getOutputStream
Description copied from interface:IInterceptorResponseReturns a ServletOutputStream suitable for writing binary data in the response.- Specified by:
getOutputStreamin interfaceIInterceptorResponse- Returns:
- a ServletOutputStream for writing binary data
- Throws:
IOException- if the getWriter method has been called on this response
-
getWriter
Description copied from interface:IInterceptorResponseReturns a PrintWriter object that can send character text to the client.- Specified by:
getWriterin interfaceIInterceptorResponse- Returns:
- a PrintWriter object that can return character data to the client
- Throws:
IOException- if an input or output exception occurred
-
flushBuffer
Description copied from interface:IInterceptorResponseForces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written.- Specified by:
flushBufferin interfaceIInterceptorResponse- Throws:
IOException
-
reset
Description copied from interface:IInterceptorResponseClears any data that exists in the buffer as well as the status code and headers.- Specified by:
resetin interfaceIInterceptorResponse
-
setCharacterEncoding
Description copied from interface:IInterceptorResponseSets the character encoding of the response being sent to the client.- Specified by:
setCharacterEncodingin interfaceIInterceptorResponse- Parameters:
var1- - a String specifying only the character
-
getCharacterEncoding
Description copied from interface:IInterceptorResponseReturns the name of the character encoding- Specified by:
getCharacterEncodingin interfaceIInterceptorResponse
-
isCommitted
Description copied from interface:IInterceptorResponseReturns a boolean indicating if the response has been committed. A committed response has already had its status code and headers written.- Specified by:
isCommittedin interfaceIInterceptorResponse- Returns:
- a boolean indicating if the response has been committed
-
getContentType
Description copied from interface:IInterceptorResponseReturns a String that indicates the content-type of the response- Specified by:
getContentTypein interfaceIInterceptorResponse- Returns:
- String that indicates the content-type of the response
-
getAppInterceptorResponse
-