org.apache.http.client.methods
Class UrlEncodedFormEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by org.apache.http.client.methods.UrlEncodedFormEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

public class UrlEncodedFormEntity
extends org.apache.http.entity.AbstractHttpEntity


Field Summary
static java.lang.String FORM_URL_ENCODED_CONTENT_TYPE
          The Content-Type for www-form-urlencoded.
 
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType
 
Constructor Summary
UrlEncodedFormEntity(org.apache.http.NameValuePair[] fields)
           
UrlEncodedFormEntity(org.apache.http.NameValuePair[] fields, java.lang.String charset)
           
 
Method Summary
 java.io.InputStream getContent()
           
 long getContentLength()
           
 org.apache.http.Header getContentType()
           
 boolean isRepeatable()
           
 boolean isStreaming()
           
 void writeTo(java.io.OutputStream outstream)
           
 
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FORM_URL_ENCODED_CONTENT_TYPE

public static final java.lang.String FORM_URL_ENCODED_CONTENT_TYPE
The Content-Type for www-form-urlencoded.

See Also:
Constant Field Values
Constructor Detail

UrlEncodedFormEntity

public UrlEncodedFormEntity(org.apache.http.NameValuePair[] fields,
                            java.lang.String charset)
                     throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException

UrlEncodedFormEntity

public UrlEncodedFormEntity(org.apache.http.NameValuePair[] fields)
Method Detail

isRepeatable

public boolean isRepeatable()

getContentLength

public long getContentLength()

getContent

public java.io.InputStream getContent()
                               throws java.io.IOException
Throws:
java.io.IOException

getContentType

public org.apache.http.Header getContentType()
Specified by:
getContentType in interface org.apache.http.HttpEntity
Overrides:
getContentType in class org.apache.http.entity.AbstractHttpEntity

isStreaming

public boolean isStreaming()

writeTo

public void writeTo(java.io.OutputStream outstream)
             throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.