org.apache.http.impl.entity
Class DisallowIdentityContentLengthStrategy

java.lang.Object
  extended by org.apache.http.impl.entity.DisallowIdentityContentLengthStrategy
All Implemented Interfaces:
org.apache.http.entity.ContentLengthStrategy

@Immutable
public class DisallowIdentityContentLengthStrategy
extends java.lang.Object
implements org.apache.http.entity.ContentLengthStrategy

Decorator for ContentLengthStrategy implementations that disallows the use of identity transfer encoding.

Since:
4.2

Field Summary
static DisallowIdentityContentLengthStrategy INSTANCE
           
 
Fields inherited from interface org.apache.http.entity.ContentLengthStrategy
CHUNKED, IDENTITY
 
Constructor Summary
DisallowIdentityContentLengthStrategy(org.apache.http.entity.ContentLengthStrategy contentLengthStrategy)
           
 
Method Summary
 long determineLength(org.apache.http.HttpMessage message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DisallowIdentityContentLengthStrategy INSTANCE
Constructor Detail

DisallowIdentityContentLengthStrategy

public DisallowIdentityContentLengthStrategy(org.apache.http.entity.ContentLengthStrategy contentLengthStrategy)
Method Detail

determineLength

public long determineLength(org.apache.http.HttpMessage message)
                     throws org.apache.http.HttpException
Specified by:
determineLength in interface org.apache.http.entity.ContentLengthStrategy
Throws:
org.apache.http.HttpException