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.ReadListener
IOException
protected abstract void append(byte[] buffer, int offset, int length)
public void onAllDataRead() throws IOException
onAllDataRead
in interface javax.servlet.ReadListener
IOException
protected abstract String finish()
protected void process(String json) throws IOException
IOException
public void onError(Throwable throwable)
onError
in interface javax.servlet.ReadListener
Copyright © 2008–2017 The CometD Project. All rights reserved.