public interface

RequestEntity

chan.http.RequestEntity
Known Indirect Subclasses

Class Overview

HTTP request entity. Used to pass data with HTTP POST request.

Summary

Public Methods
abstract void add(String name, String value)

Add string field to entity with given name and value.

abstract RequestEntity copy()

Returns a deep copy of this RequestEntity instance.

abstract long getContentLength()

Returns a content length of entity.

abstract String getContentType()

Returns a content type of entity.

abstract void write(OutputStream output)

Writes entity to given output.

Public Methods

public abstract void add (String name, String value)

Add string field to entity with given name and value.

Parameters
name String: Field name.
value String: Field value.

public abstract RequestEntity copy ()

Returns a deep copy of this RequestEntity instance.

Returns
RequestEntity Copy of this entity.

public abstract long getContentLength ()

Returns a content length of entity.

Returns
long Content length.

public abstract String getContentType ()

Returns a content type of entity.

Returns
String Content type.

public abstract void write (OutputStream output)

Writes entity to given output.

Parameters
output OutputStream: Output stream.
Throws
IOException if an error occurs while writing to given output.