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
A
HttpServletResponse wrapped as a core Response.
All write operations are internally converted to blocking writes on the servlet API.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.server.Response
org.eclipse.jetty.server.Response.Wrapper -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jetty.http.HttpFields.Mutableorg.eclipse.jetty.server.Requestjakarta.servlet.http.HttpServletResponseintSupplier<org.eclipse.jetty.http.HttpFields> booleanbooleanbooleanvoidreset()voidsetStatus(int code) voidsetTrailersSupplier(Supplier<org.eclipse.jetty.http.HttpFields> trailers) toString()org.eclipse.jetty.server.Responsewrap(org.eclipse.jetty.server.Request coreRequest, jakarta.servlet.http.HttpServletResponse httpServletResponse, boolean included) voidwrite(boolean last, ByteBuffer byteBuffer, org.eclipse.jetty.util.Callback callback) writeInterim(int status, org.eclipse.jetty.http.HttpFields headers)
-
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:
getHeadersin interfaceorg.eclipse.jetty.server.Response
-
getServletResponse
public jakarta.servlet.http.HttpServletResponse getServletResponse() -
hasLastWrite
public boolean hasLastWrite()- Specified by:
hasLastWritein interfaceorg.eclipse.jetty.server.Response
-
isCompletedSuccessfully
public boolean isCompletedSuccessfully()- Specified by:
isCompletedSuccessfullyin interfaceorg.eclipse.jetty.server.Response
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfaceorg.eclipse.jetty.server.Response
-
write
- Specified by:
writein interfaceorg.eclipse.jetty.io.Content.Sink- Specified by:
writein interfaceorg.eclipse.jetty.server.Response
-
getRequest
public org.eclipse.jetty.server.Request getRequest()- Specified by:
getRequestin interfaceorg.eclipse.jetty.server.Response
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceorg.eclipse.jetty.server.Response
-
setStatus
public void setStatus(int code) - Specified by:
setStatusin interfaceorg.eclipse.jetty.server.Response
-
getTrailersSupplier
- Specified by:
getTrailersSupplierin interfaceorg.eclipse.jetty.server.Response
-
setTrailersSupplier
- Specified by:
setTrailersSupplierin interfaceorg.eclipse.jetty.server.Response
-
reset
public void reset()- Specified by:
resetin interfaceorg.eclipse.jetty.server.Response
-
writeInterim
- Specified by:
writeInterimin interfaceorg.eclipse.jetty.server.Response
-
toString
-