org.codegist.crest.io.http
Class UrlEncodedFormEntityParamExtractor
java.lang.Object
org.codegist.crest.io.http.UrlEncodedFormEntityParamExtractor
- All Implemented Interfaces:
- EntityParamExtractor
public class UrlEncodedFormEntityParamExtractor
- extends Object
- implements EntityParamExtractor
EntityParamExtractor implementation that extract parameters from an URL-encoded entity
- Author:
- Laurent Gilles (laurent.gilles@codegist.org)
UrlEncodedFormEntityParamExtractor
public UrlEncodedFormEntityParamExtractor()
extract
public List<EncodedPair> extract(String contentType,
Charset charset,
InputStream entity)
throws IOException
- Description copied from interface:
EntityParamExtractor
- Extracts a list of pre-encoded parameters from the HTTP entity to use during the authentification process of a request
- Specified by:
extract in interface EntityParamExtractor
- Parameters:
contentType - the HTTP request's Content-Typecharset - the HTTP request entity's charsetentity - the HTTP request's entity
- Returns:
- the parameters extracted from the entity to use during the authentification process
- Throws:
IOException- See Also:
Authorization.authorize(org.codegist.crest.config.MethodType, String, org.codegist.crest.param.EncodedPair...)
Copyright © 2011. All Rights Reserved.