Uses of Interface
org.spincast.core.exchange.ResponseRequestContextAddon
-
Uses of ResponseRequestContextAddon in org.spincast.core.exchange
Modifier and TypeMethodDescriptionResponseRequestContextAddon.addHeaderValue
(String name, String value) Adds a value to a response header.ResponseRequestContextAddon.addHeaderValues
(String name, List<String> values) Adds a list of values to a response header.ResponseRequestContextAddon.push
(HttpMethod httpMethod, String path, Map<String, List<String>> requestHeaders) IfHTTP/2
is used, you can push extra resources at the same time you response to a request.ResponseRequestContextAddon.removeHeader
(String name) Removes an header by its name.ResponseRequestContextAddon.resetBuffer()
Clears the buffer (the unsent buffer, of course).ResponseRequestContextAddon.resetEverything()
Clears the buffer (the unsent buffer, of course!), resets the cookies, the headers, theContent-Type
and sets thestatus code
back to200
.ResponseRequestContextAddon.resetEverything
(boolean resetCookies) Clears the buffer (the unsent buffer, of course), the headers, theContent-Type
and sets thestatus code
back to200
.RequestContext.response()
Response related methods.RequestContextBase.response()
ResponseRequestContextAddon.setCacheSeconds
(int cacheSeconds) Adds caching headers.ResponseRequestContextAddon.setCacheSeconds
(int cacheSeconds, boolean isPrivateCache) Adds caching headers for the specified number of seconds.ResponseRequestContextAddon.setCharactersCharsetName
(String name) Sets the charset to use to convert characters to bytes.ResponseRequestContextAddon.setContentType
(String responseContentType) TheContent-Type
header to use for the response.ResponseRequestContextAddon.setGzipOption
(GzipOption gzipOption) Enable or disable gzipping of the response.Set the value to a response header.Set multiple values to a response header.ResponseRequestContextAddon.setStatusCode
(int statusCode) Sets the response'sstatus code
to use.Modifier and TypeMethodDescriptionprotected com.google.inject.Provider<ResponseRequestContextAddon<R>>
RequestContextBase.getResponseRequestContextAddonProvider()
com.google.inject.Provider<ResponseRequestContextAddon<R>>
RequestContextBaseDeps.getResponseRequestContextAddonProvider()
-
Uses of ResponseRequestContextAddon in org.spincast.plugins.response
Modifier and TypeClassDescriptionclass
SpincastResponseRequestContextAddon<R extends RequestContext<?>>
Modifier and TypeMethodDescriptionSpincastResponseRequestContextAddon.addHeaderValue
(String name, String value) SpincastResponseRequestContextAddon.addHeaderValues
(String name, List<String> values) SpincastResponseRequestContextAddon.push
(HttpMethod httpMethod, String path, Map<String, List<String>> requestHeaders) SpincastResponseRequestContextAddon.removeHeader
(String name) SpincastResponseRequestContextAddon.resetBuffer()
SpincastResponseRequestContextAddon.resetEverything()
SpincastResponseRequestContextAddon.resetEverything
(boolean resetCookies) SpincastResponseRequestContextAddon.setCacheSeconds
(int cacheSeconds) SpincastResponseRequestContextAddon.setCacheSeconds
(int cacheSeconds, boolean isPrivateCache) SpincastResponseRequestContextAddon.setCharactersCharsetName
(String charactersCharsetName) SpincastResponseRequestContextAddon.setContentType
(String responseContentType) SpincastResponseRequestContextAddon.setGzipOption
(GzipOption gzipOption) SpincastResponseRequestContextAddon.setStatusCode
(int responseStatusCode)