Class ServletCoreResponse

java.lang.Object
org.eclipse.jetty.ee10.servlet.ServletCoreResponse
All Implemented Interfaces:
org.eclipse.jetty.io.Content.Sink, org.eclipse.jetty.server.Response

public class ServletCoreResponse extends Object implements org.eclipse.jetty.server.Response
A HttpServletResponse wrapped as a core Response. All write operations are internally converted to blocking writes on the servlet API.
  • Method Details

    • wrap

      public org.eclipse.jetty.server.Response wrap(org.eclipse.jetty.server.Request coreRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, boolean included)
    • getHeaders

      public org.eclipse.jetty.http.HttpFields.Mutable getHeaders()
      Specified by:
      getHeaders in interface org.eclipse.jetty.server.Response
    • getServletResponse

      public jakarta.servlet.http.HttpServletResponse getServletResponse()
    • hasLastWrite

      public boolean hasLastWrite()
      Specified by:
      hasLastWrite in interface org.eclipse.jetty.server.Response
    • isCompletedSuccessfully

      public boolean isCompletedSuccessfully()
      Specified by:
      isCompletedSuccessfully in interface org.eclipse.jetty.server.Response
    • isCommitted

      public boolean isCommitted()
      Specified by:
      isCommitted in interface org.eclipse.jetty.server.Response
    • write

      public void write(boolean last, ByteBuffer byteBuffer, org.eclipse.jetty.util.Callback callback)
      Specified by:
      write in interface org.eclipse.jetty.io.Content.Sink
      Specified by:
      write in interface org.eclipse.jetty.server.Response
    • getRequest

      public org.eclipse.jetty.server.Request getRequest()
      Specified by:
      getRequest in interface org.eclipse.jetty.server.Response
    • getStatus

      public int getStatus()
      Specified by:
      getStatus in interface org.eclipse.jetty.server.Response
    • setStatus

      public void setStatus(int code)
      Specified by:
      setStatus in interface org.eclipse.jetty.server.Response
    • getTrailersSupplier

      public Supplier<org.eclipse.jetty.http.HttpFields> getTrailersSupplier()
      Specified by:
      getTrailersSupplier in interface org.eclipse.jetty.server.Response
    • setTrailersSupplier

      public void setTrailersSupplier(Supplier<org.eclipse.jetty.http.HttpFields> trailers)
      Specified by:
      setTrailersSupplier in interface org.eclipse.jetty.server.Response
    • reset

      public void reset()
      Specified by:
      reset in interface org.eclipse.jetty.server.Response
    • writeInterim

      public CompletableFuture<Void> writeInterim(int status, org.eclipse.jetty.http.HttpFields headers)
      Specified by:
      writeInterim in interface org.eclipse.jetty.server.Response
    • toString

      public String toString()
      Overrides:
      toString in class Object