Package org.eclipse.jetty.proxy
Class AsyncMiddleManServlet.ProxyWriter
- java.lang.Object
-
- org.eclipse.jetty.proxy.AsyncMiddleManServlet.ProxyWriter
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.WriteListener
- Enclosing class:
- AsyncMiddleManServlet
protected class AsyncMiddleManServlet.ProxyWriter extends java.lang.Object implements javax.servlet.WriteListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProxyWriter(javax.servlet.http.HttpServletRequest clientRequest, Response serverResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
offer(java.nio.ByteBuffer content, Callback callback)
void
onError(java.lang.Throwable failure)
void
onWritePossible()
-
-
-
Constructor Detail
-
ProxyWriter
protected ProxyWriter(javax.servlet.http.HttpServletRequest clientRequest, Response serverResponse)
-
-
Method Detail
-
offer
public boolean offer(java.nio.ByteBuffer content, Callback callback)
-
onWritePossible
public void onWritePossible() throws java.io.IOException
- Specified by:
onWritePossible
in interfacejavax.servlet.WriteListener
- Throws:
java.io.IOException
-
onError
public void onError(java.lang.Throwable failure)
- Specified by:
onError
in interfacejavax.servlet.WriteListener
-
-