public final class DefaultStreamingHttpRequestResponseFactory extends java.lang.Object implements StreamingHttpRequestResponseFactory
StreamingHttpRequestFactory
and StreamingHttpResponseFactory
.Constructor and Description |
---|
DefaultStreamingHttpRequestResponseFactory(BufferAllocator allocator,
HttpHeadersFactory headersFactory,
HttpProtocolVersion protocolVersion)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
StreamingHttpRequest |
newRequest(HttpRequestMethod method,
java.lang.String requestTarget)
Create a new
HttpRequestFactory . |
StreamingHttpResponse |
newResponse(HttpResponseStatus status)
Create a new
StreamingHttpResponse object. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, delete, get, head, options, patch, post, trace
accepted, alreadyReported, badGateway, badRequest, conflict, continueResponse, created, earlyHints, expectationFailed, failedDependency, forbidden, found, gatewayTimeout, gone, httpVersionNotSupported, imUsed, insufficientStorage, internalServerError, lengthRequired, locked, loopDetected, methodNotAllowed, misdirectedRequest, movedPermanently, multipleChoices, multiStatus, networkAuthenticationRequired, noContent, nonAuthoritativeInformation, notAcceptable, notExtended, notFound, notImplemented, notModified, ok, partialContent, payloadTooLarge, paymentRequired, permanentRedirect, preconditionFailed, preconditionRequired, processing, proxyAuthenticationRequired, rangeNotSatisfiable, requestHeaderFieldsTooLarge, requestTimeout, resetContent, seeOther, serviceUnavailable, switchingProtocols, temporaryRedirect, tooEarly, tooManyRequests, unauthorized, unavailableForLegalReasons, unprocessableEntity, unsupportedMediaType, upgradeRequired, uriTooLong, useProxy, variantAlsoNegotiates
public DefaultStreamingHttpRequestResponseFactory(BufferAllocator allocator, HttpHeadersFactory headersFactory, HttpProtocolVersion protocolVersion)
allocator
- The BufferAllocator
to use for serialization.headersFactory
- The HttpHeadersFactory
to use for request/response creation.protocolVersion
- The HttpProtocolVersion
to use for new requests/responses.public StreamingHttpRequest newRequest(HttpRequestMethod method, java.lang.String requestTarget)
StreamingHttpRequestFactory
HttpRequestFactory
.newRequest
in interface StreamingHttpRequestFactory
method
- The HttpRequestMethod
.requestTarget
- The request target.HttpRequestFactory
.public StreamingHttpResponse newResponse(HttpResponseStatus status)
StreamingHttpResponseFactory
StreamingHttpResponse
object.newResponse
in interface StreamingHttpResponseFactory
status
- The HttpResponseStatus
.StreamingHttpResponse
object.