Uses of Class
org.jdrupes.httpcodec.protocols.http.HttpResponse
Package
Description
Provides the API for adding “upgrade” protocols
Classes required for handling the HTTP protocol.
HTTP codecs required on the client side.
HTTP codecs required on the server side.
Classes for handling the Websocket protocol.
-
Uses of HttpResponse in org.jdrupes.httpcodec.plugin
Modifier and TypeMethodDescriptionabstract void
UpgradeProvider.augmentInitialResponse
(HttpResponse response) Add any required information to the “switching protocols” response that is sent as the last package of the HTTP and starts the usage of the new protocol.abstract void
UpgradeProvider.checkSwitchingResponse
(HttpRequest request, HttpResponse response) Check the101 Switching Protocol
response for any problem indicators. -
Uses of HttpResponse in org.jdrupes.httpcodec.protocols.http
Modifier and TypeMethodDescriptionHttpResponse.setContentLength
(long length) A convenience method for setting the “Content-Length” header.HttpResponse.setContentType
(String type, String subtype) Convenience method for setting the “Content-Type” header from the given values.HttpResponse.setContentType
(String type, String subtype, String charset) A convenience method for setting the “Content-Type” header (usually of type “text”) together with its charset parameter.HttpResponse.setContentType
(URI requestUri) Convenience method for setting the “Content-Type” header using the path information of the given request.HttpResponse.setContentType
(MediaType mediaType) Convenience method for setting the “Content-Type” header using the given media type.<T> HttpResponse
HttpResponse.setHasPayload
(boolean hasPayload) HttpResponse.setReasonPhrase
(String reasonPhrase) HttpResponse.setRequest
(HttpRequest request) Associates the response with the request that it responds to.HttpResponse.setStatus
(HttpConstants.HttpStatus status) Sets both status code and reason phrase from the given http status value.HttpResponse.setStatusCode
(int statusCode) Modifier and TypeMethodDescriptionHttpRequest.setResponse
(HttpResponse response) Associates the request with a response. -
Uses of HttpResponse in org.jdrupes.httpcodec.protocols.http.client
Modifier and TypeMethodDescriptionprotected HttpResponse
HttpResponseDecoder.newMessage
(String startLine) Checks whether the first line of a message is a valid response.Modifier and TypeMethodDescriptionprotected HttpDecoder.BodyMode
HttpResponseDecoder.headerReceived
(HttpResponse message) -
Uses of HttpResponse in org.jdrupes.httpcodec.protocols.http.server
Modifier and TypeMethodDescriptionvoid
HttpResponseEncoder.encode
(HttpResponse messageHeader) HttpRequestDecoder.Result.Factory.newResult
(boolean overflow, boolean underflow, boolean headerCompleted, HttpResponse response, boolean responseOnly) Create a new result.protected void
HttpResponseEncoder.startMessage
(HttpResponse response, Writer writer) ModifierConstructorDescriptionResult
(boolean overflow, boolean underflow, boolean headerCompleted, HttpResponse response, boolean responseOnly) Creates a new result. -
Uses of HttpResponse in org.jdrupes.httpcodec.protocols.websocket
Modifier and TypeMethodDescriptionvoid
WsProtocolProvider.augmentInitialResponse
(HttpResponse response) void
WsProtocolProvider.checkSwitchingResponse
(HttpRequest request, HttpResponse response)