public final class DefaultStreamingHttpRequestResponseFactory extends 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,
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, waitconnect, delete, get, head, options, patch, post, put, traceaccepted, 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, variantAlsoNegotiatespublic 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, String requestTarget)
StreamingHttpRequestFactoryHttpRequestFactory.newRequest in interface StreamingHttpRequestFactorymethod - The HttpRequestMethod.requestTarget - The request target.HttpRequestFactory.public StreamingHttpResponse newResponse(HttpResponseStatus status)
StreamingHttpResponseFactoryStreamingHttpResponse object.newResponse in interface StreamingHttpResponseFactorystatus - The HttpResponseStatus.StreamingHttpResponse object.