Class MutableRequest
java.lang.Object
org.eclipse.jetty.server.Request.Wrapper
io.confluent.kafka.schemaregistry.rest.MutableRequest
- All Implemented Interfaces:
org.eclipse.jetty.io.Content.Source,org.eclipse.jetty.server.Request,org.eclipse.jetty.util.Attributes
public final class MutableRequest
extends org.eclipse.jetty.server.Request.Wrapper
Allows for adding and replacing custom headers in the HttpServletRequest object.
Only one value per custom header is allowed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
org.eclipse.jetty.util.Attributes.Layer, org.eclipse.jetty.util.Attributes.Lazy, org.eclipse.jetty.util.Attributes.Mapped, org.eclipse.jetty.util.Attributes.SyntheticNested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source
org.eclipse.jetty.io.Content.Source.FactoryNested classes/interfaces inherited from interface org.eclipse.jetty.server.Request
org.eclipse.jetty.server.Request.AttributesWrapper, org.eclipse.jetty.server.Request.AuthenticationState, org.eclipse.jetty.server.Request.Handler, org.eclipse.jetty.server.Request.ServeAs, org.eclipse.jetty.server.Request.Wrapper -
Field Summary
Fields inherited from interface org.eclipse.jetty.util.Attributes
NULLFields inherited from interface org.eclipse.jetty.server.Request
COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the unique (case-insensitive) header names in customHeaders and HttpServletRequest.org.eclipse.jetty.http.HttpFieldsgetHeaders(String name) voidPuts a new header will take precedence over existing header in the HttpServletRequest object.Methods inherited from class org.eclipse.jetty.server.Request.Wrapper
addFailureListener, addHttpStreamWrapper, addIdleTimeoutListener, asAttributeMap, clearAttributes, consumeAvailable, demand, fail, getAttribute, getAttributeNameSet, getBeginNanoTime, getComponents, getConnectionMetaData, getContext, getHeadersNanoTime, getHttpURI, getId, getLength, getMethod, getSession, getTrailers, getTunnelSupport, getWrapped, isSecure, push, read, removeAttribute, setAttribute, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.jetty.util.Attributes
equals, hashCodeMethods inherited from interface org.eclipse.jetty.io.Content.Source
fail, rewind
-
Constructor Details
-
MutableRequest
public MutableRequest(org.eclipse.jetty.server.Request request)
-
-
Method Details
-
getHeaders
public org.eclipse.jetty.http.HttpFields getHeaders()- Specified by:
getHeadersin interfaceorg.eclipse.jetty.server.Request- Overrides:
getHeadersin classorg.eclipse.jetty.server.Request.Wrapper
-
getHeaders
-
getHeader
-
getHeaderNames
Get the unique (case-insensitive) header names in customHeaders and HttpServletRequest. -
putHeader
Puts a new header will take precedence over existing header in the HttpServletRequest object.
-