Improved documentation.
This commit is contained in:
parent
55c204b3ba
commit
a1032465b8
|
@ -24,6 +24,7 @@ import java.util.Iterator;
|
|||
|
||||
import org.eclipse.jetty.client.api.ContentProvider;
|
||||
import org.eclipse.jetty.client.util.DeferredContentProvider;
|
||||
import org.eclipse.jetty.util.BufferUtil;
|
||||
|
||||
/**
|
||||
* {@link HttpContent} is a stateful, linear representation of the request content provided
|
||||
|
@ -140,4 +141,16 @@ public class HttpContent
|
|||
{
|
||||
return content == AFTER;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return String.format("%s@%x - has=%b,last=%b,consumed=%b,buffer=%s",
|
||||
getClass().getSimpleName(),
|
||||
hashCode(),
|
||||
hasContent(),
|
||||
isLast(),
|
||||
isConsumed(),
|
||||
BufferUtil.toDetailString(getContent()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -728,6 +728,8 @@ public abstract class HttpSender implements AsyncContentProvider.Listener
|
|||
@Override
|
||||
protected void completed()
|
||||
{
|
||||
// Nothing to do, since we always return false from process().
|
||||
// Termination is obtained via LastContentCallback.
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue