com.ning.http.client.providers.grizzly
Class GrizzlyAsyncHttpProvider.BodyHandler
java.lang.Object
com.ning.http.client.providers.grizzly.GrizzlyAsyncHttpProvider.BodyHandler
- Enclosing class:
- GrizzlyAsyncHttpProvider
public abstract static class GrizzlyAsyncHttpProvider.BodyHandler
- extends Object
|
Method Summary |
abstract boolean |
doHandle(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
Request request,
org.glassfish.grizzly.http.HttpRequestPacket requestPacket)
|
protected long |
getContentLength(Request request)
Tries to predict request content-length based on the Request. |
abstract boolean |
handlesBodyType(Request request)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_CHUNK_SIZE
public static int MAX_CHUNK_SIZE
GrizzlyAsyncHttpProvider.BodyHandler
public GrizzlyAsyncHttpProvider.BodyHandler()
handlesBodyType
public abstract boolean handlesBodyType(Request request)
doHandle
public abstract boolean doHandle(org.glassfish.grizzly.filterchain.FilterChainContext ctx,
Request request,
org.glassfish.grizzly.http.HttpRequestPacket requestPacket)
throws IOException
- Throws:
IOException
getContentLength
protected long getContentLength(Request request)
- Tries to predict request content-length based on the
Request.
Not all the BodyHandlers can predict the content-length in
advance.
- Parameters:
request -
- Returns:
- the content-length, or -1 if the content-length
can't be predicted
Copyright © 2014. All Rights Reserved.