Package org.eclipse.jetty.proxy
Class AsyncProxyServlet.StreamWriter
- java.lang.Object
-
- org.eclipse.jetty.proxy.AsyncProxyServlet.StreamWriter
-
- All Implemented Interfaces:
java.util.EventListener
,javax.servlet.WriteListener
- Enclosing class:
- AsyncProxyServlet
protected class AsyncProxyServlet.StreamWriter extends java.lang.Object implements javax.servlet.WriteListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StreamWriter(javax.servlet.http.HttpServletRequest request, Response proxyResponse)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
complete()
protected void
data(byte[] bytes, int offset, int length, Callback callback)
void
onError(java.lang.Throwable failure)
void
onWritePossible()
-
-
-
Constructor Detail
-
StreamWriter
protected StreamWriter(javax.servlet.http.HttpServletRequest request, Response proxyResponse)
-
-
Method Detail
-
data
protected void data(byte[] bytes, int offset, int length, Callback callback)
-
onWritePossible
public void onWritePossible() throws java.io.IOException
- Specified by:
onWritePossible
in interfacejavax.servlet.WriteListener
- Throws:
java.io.IOException
-
complete
protected void complete()
-
onError
public void onError(java.lang.Throwable failure)
- Specified by:
onError
in interfacejavax.servlet.WriteListener
-
-