Package org.eclipse.jetty.proxy
Class ProxyServlet.ProxyInputStreamRequestContent
java.lang.Object
org.eclipse.jetty.client.util.AbstractRequestContent
org.eclipse.jetty.client.util.InputStreamRequestContent
org.eclipse.jetty.proxy.ProxyServlet.ProxyInputStreamRequestContent
- All Implemented Interfaces:
Request.Content
- Enclosing class:
- ProxyServlet
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.client.util.AbstractRequestContent
AbstractRequestContent.AbstractSubscription, AbstractRequestContent.Producer
Nested classes/interfaces inherited from interface org.eclipse.jetty.client.api.Request.Content
Request.Content.Consumer, Request.Content.Subscription
-
Constructor Summary
ModifierConstructorDescriptionprotected
ProxyInputStreamRequestContent
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest, InputStream input) -
Method Summary
Modifier and TypeMethodDescriptionlong
protected ByteBuffer
onRead
(byte[] buffer, int offset, int length) protected void
onReadFailure
(Throwable failure) Methods inherited from class org.eclipse.jetty.client.util.InputStreamRequestContent
fail, newSubscription
Methods inherited from class org.eclipse.jetty.client.util.AbstractRequestContent
getContentType, subscribe
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jetty.client.api.Request.Content
isReproducible
-
Constructor Details
-
ProxyInputStreamRequestContent
protected ProxyInputStreamRequestContent(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Request proxyRequest, InputStream input)
-
-
Method Details
-
getLength
public long getLength()- Returns:
- the content length, if known, or -1 if the content length is unknown
-
onRead
- Overrides:
onRead
in classInputStreamRequestContent
-
onReadFailure
- Overrides:
onReadFailure
in classInputStreamRequestContent
-