APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.net

public final Class HttpParametersUtils

extends Object
Class Inheritance
Imports
java.io.UnsupportedEncodingException, java.net.URLEncoder, java.util.Map, .Set, com.badlogic.gdx.Net.HttpRequest

Provides utility methods to work with the HttpRequest content and parameters.

Field Summary

Modifier and TypeField and Description
public static String
public static String
public static String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

The String with the parameters encoded.
convertHttpParameters
(Map<String, String>
A Map with the parameters to encode.
parameters
)

Useful method to convert a map of key,value pairs to a String to be used as part of a GET or POST content.

private static String
encode(String content, String encoding)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultEncodingback to summary
public static String defaultEncoding
nameValueSeparatorback to summary
public static String nameValueSeparator
parameterSeparatorback to summary
public static String parameterSeparator

Constructor Detail

HttpParametersUtilsback to summary
private HttpParametersUtils()

Method Detail

convertHttpParametersback to summary
public static String convertHttpParameters(Map<String, String> parameters)

Useful method to convert a map of key,value pairs to a String to be used as part of a GET or POST content.

Parameters
parameters:Map<String, String>

A Map with the parameters to encode.

Returns:String

The String with the parameters encoded.

encodeback to summary
private static String encode(String content, String encoding)