- java.lang.Object
-
- org.eclipse.jetty.client.HttpSender
-
- org.eclipse.jetty.client.http.HttpSenderOverHTTP
-
public class HttpSenderOverHTTP extends HttpSender
-
-
Constructor Summary
Constructors Constructor Description HttpSenderOverHTTP(HttpChannelOverHTTP channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddispose()HttpChannelOverHTTPgetHttpChannel()protected booleanisShutdown()protected voidreset()protected voidsendContent(HttpExchange exchange, java.nio.ByteBuffer contentBuffer, boolean lastContent, org.eclipse.jetty.util.Callback callback)Implementations should send the given HTTP content over the wire.protected voidsendHeaders(HttpExchange exchange, java.nio.ByteBuffer contentBuffer, boolean lastContent, org.eclipse.jetty.util.Callback callback)Implementations should send the HTTP headers over the wire, possibly with some content, in a single write, and notify the givencallbackof the result of this operation.java.lang.StringtoString()-
Methods inherited from class org.eclipse.jetty.client.HttpSender
abort, beginToHeaders, expects100Continue, getHttpExchange, headersToCommit, isFailed, proceed, queuedToBegin, send, someToContent, someToSuccess
-
-
-
-
Constructor Detail
-
HttpSenderOverHTTP
public HttpSenderOverHTTP(HttpChannelOverHTTP channel)
-
-
Method Detail
-
getHttpChannel
public HttpChannelOverHTTP getHttpChannel()
- Overrides:
getHttpChannelin classHttpSender
-
sendHeaders
protected void sendHeaders(HttpExchange exchange, java.nio.ByteBuffer contentBuffer, boolean lastContent, org.eclipse.jetty.util.Callback callback)
Description copied from class:HttpSenderImplementations should send the HTTP headers over the wire, possibly with some content, in a single write, and notify the given
callbackof the result of this operation.If there is more content to send, then
HttpSender.sendContent(HttpExchange, ByteBuffer, boolean, Callback)will be invoked.- Specified by:
sendHeadersin classHttpSender- Parameters:
exchange- the exchangecontentBuffer- the content to sendlastContent- whether the content is the last content to sendcallback- the callback to notify
-
sendContent
protected void sendContent(HttpExchange exchange, java.nio.ByteBuffer contentBuffer, boolean lastContent, org.eclipse.jetty.util.Callback callback)
Description copied from class:HttpSenderImplementations should send the given HTTP content over the wire.
- Specified by:
sendContentin classHttpSender- Parameters:
exchange- the exchangecontentBuffer- the content to sendlastContent- whether the content is the last content to sendcallback- the callback to notify
-
reset
protected void reset()
- Overrides:
resetin classHttpSender
-
dispose
protected void dispose()
- Overrides:
disposein classHttpSender
-
isShutdown
protected boolean isShutdown()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classHttpSender
-
-