FileDocCategorySizeDatePackage
EntityEnclosingRequestWrapper.javaAPI DocAndroid 1.5 API2921Wed May 06 22:41:10 BST 2009org.apache.http.impl.client

EntityEnclosingRequestWrapper

public class EntityEnclosingRequestWrapper extends RequestWrapper implements HttpEntityEnclosingRequest
A wrapper class for {@link HttpEntityEnclosingRequest}s that can be used to change properties of the current request without modifying the original object.

This class is also capable of resetting the request headers to the state of the original request.
author
Oleg Kalnichevski
version
$Revision: 674186 $
since
4.0

Fields Summary
private HttpEntity
entity
Constructors Summary
public EntityEnclosingRequestWrapper(HttpEntityEnclosingRequest request)

        super(request);
        this.entity = request.getEntity();
    
Methods Summary
public booleanexpectContinue()

        Header expect = getFirstHeader(HTTP.EXPECT_DIRECTIVE);
        return expect != null && HTTP.EXPECT_CONTINUE.equalsIgnoreCase(expect.getValue());
    
public org.apache.http.HttpEntitygetEntity()

        return this.entity;
    
public booleanisRepeatable()

        return this.entity == null || this.entity.isRepeatable();
    
public voidsetEntity(org.apache.http.HttpEntity entity)

        this.entity = entity;