|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.entity.StrictContentLengthStrategy
public class StrictContentLengthStrategy
The strict implementation of the content length strategy. This class
will throw ProtocolException if it encounters an unsupported
transfer encoding or a malformed Content-Length header
value.
This class recognizes "chunked" and "identitiy" transfer-coding only.
| Field Summary |
|---|
| Fields inherited from interface org.apache.http.entity.ContentLengthStrategy |
|---|
CHUNKED, IDENTITY |
| Constructor Summary | |
|---|---|
StrictContentLengthStrategy()
|
|
| Method Summary | |
|---|---|
long |
determineLength(HttpMessage message)
Returns length of the given message in bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StrictContentLengthStrategy()
| Method Detail |
|---|
public long determineLength(HttpMessage message)
throws HttpException
ContentLengthStrategyContentLengthStrategy.IDENTITY if the end of the
message will be delimited by the end of connection, or ContentLengthStrategy.CHUNKED
if the message is chunk coded
determineLength in interface ContentLengthStrategyContentLengthStrategy.IDENTITY, or ContentLengthStrategy.CHUNKED
HttpException - in case of HTTP protocol violation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||