Improved documentation.

This commit is contained in:
Simone Bordet 2013-07-23 15:17:33 +02:00
parent 55c204b3ba
commit a1032465b8
2 changed files with 15 additions and 0 deletions

View File

@ -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()));
}
}

View File

@ -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