protected abstract class AsyncJSONTransport.AbstractReader extends Object implements javax.servlet.ReadListener
| Modifier and Type | Field and Description |
|---|---|
protected javax.servlet.AsyncContext |
asyncContext |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractReader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext asyncContext) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
append(byte[] buffer,
int offset,
int length) |
protected abstract String |
finish() |
void |
onAllDataRead() |
void |
onDataAvailable() |
void |
onError(Throwable throwable) |
protected void |
process(String json) |
protected AbstractReader(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.AsyncContext asyncContext)
public void onDataAvailable()
throws IOException
onDataAvailable in interface javax.servlet.ReadListenerIOExceptionprotected abstract void append(byte[] buffer,
int offset,
int length)
public void onAllDataRead()
throws IOException
onAllDataRead in interface javax.servlet.ReadListenerIOExceptionprotected abstract String finish()
protected void process(String json) throws IOException
IOExceptionpublic void onError(Throwable throwable)
onError in interface javax.servlet.ReadListenerCopyright © 2008–2017 The CometD Project. All rights reserved.