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.Synthetic

    Nested classes/interfaces inherited from interface org.eclipse.jetty.io.Content.Source

    org.eclipse.jetty.io.Content.Source.Factory

    Nested 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

    NULL

    Fields inherited from interface org.eclipse.jetty.server.Request

    COOKIE_ATTRIBUTE, DEFAULT_LOCALES, LOG
  • Constructor Summary

    Constructors
    Constructor
    Description
    MutableRequest(org.eclipse.jetty.server.Request request)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Get the unique (case-insensitive) header names in customHeaders and HttpServletRequest.
    org.eclipse.jetty.http.HttpFields
     
     
    void
    putHeader(String name, String value)
    Puts 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, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.util.Attributes

    equals, hashCode

    Methods 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:
      getHeaders in interface org.eclipse.jetty.server.Request
      Overrides:
      getHeaders in class org.eclipse.jetty.server.Request.Wrapper
    • getHeaders

      public Enumeration<String> getHeaders(String name)
    • getHeader

      public String getHeader(String name)
    • getHeaderNames

      public Enumeration<String> getHeaderNames()
      Get the unique (case-insensitive) header names in customHeaders and HttpServletRequest.
    • putHeader

      public void putHeader(String name, String value)
      Puts a new header will take precedence over existing header in the HttpServletRequest object.