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