• BlackBerry Dynamics
  • Runtime library for Android applications
  • 12.0.1.79
UrlEncodedFormEntity Class Reference

An entity composed of a list of url-encoded pairs. More...

Inheritance diagram for UrlEncodedFormEntity:
StringEntity AbstractHttpEntity HttpEntity

Description

This is typically useful while sending an HTTP POST request.

Notice

The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.

/*
 * Copyright (C) 2006 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

Public Member Functions

 UrlEncodedFormEntity (final List<? extends NameValuePair > parameters, final String encoding) throws UnsupportedEncodingException
 Constructs a new UrlEncodedFormEntity with the list of parameters in the specified encoding. More...
 
 UrlEncodedFormEntity (final List<? extends NameValuePair > parameters) throws UnsupportedEncodingException
 Constructs a new UrlEncodedFormEntity with the list of parameters with the default encoding of #DEFAULT_CONTENT_CHARSET . More...
 
- Public Member Functions inherited from StringEntity
boolean isRepeatable ()
 Tells if the entity is capable to produce its data more than once. More...
 
long getContentLength ()
 Tells the length of the content, if known. More...
 
InputStream getContent () throws IOException
 Creates a new InputStream object of the entity. More...
 
void writeTo (final OutputStream outstream) throws IOException
 Writes the entity content to the output stream. More...
 
boolean isStreaming ()
 Tells that this entity is not streaming. More...
 
- Public Member Functions inherited from AbstractHttpEntity
Header getContentType ()
 Obtains the Content-Type header. More...
 
Header getContentEncoding ()
 Obtains the Content-Encoding header. More...
 
boolean isChunked ()
 Obtains the 'chunked' flag. More...
 
void setContentType (final Header contentType)
 Specifies the Content-Type header. More...
 
void setContentType (final String ctString)
 Specifies the Content-Type header, as a string. More...
 
void setContentEncoding (final Header contentEncoding)
 Specifies the Content-Encoding header. More...
 
void setContentEncoding (final String ceString)
 Specifies the Content-Encoding header, as a string. More...
 
void setChunked (boolean b)
 Specifies the 'chunked' flag. More...
 
void consumeContent () throws IOException, UnsupportedOperationException
 Does not consume anything. More...
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractHttpEntity
 AbstractHttpEntity ()
 Protected default constructor. More...
 
- Protected Attributes inherited from AbstractHttpEntity
Header contentType
 The Content-Type header. More...
 
Header contentEncoding
 The Content-Encoding header. More...
 
boolean chunked
 The 'chunked' flag. More...
 

Constructor & Destructor Documentation

◆ UrlEncodedFormEntity() [1/2]

UrlEncodedFormEntity ( final List<? extends NameValuePair parameters,
final String  encoding 
) throws UnsupportedEncodingException
Parameters
parameterslist of name/value pairs
encodingencoding the name/value pairs be encoded with
Exceptions
UnsupportedEncodingExceptionif the encoding isn't supported

◆ UrlEncodedFormEntity() [2/2]

UrlEncodedFormEntity ( final List<? extends NameValuePair parameters) throws UnsupportedEncodingException
Parameters
parameterslist of name/value pairs
Exceptions
UnsupportedEncodingExceptionif the default encoding isn't supported