org.codegist.crest.io.http
Class UrlEncodedFormEntityParamExtractor

java.lang.Object
  extended by 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)

Constructor Summary
UrlEncodedFormEntityParamExtractor()
           
 
Method Summary
 List<EncodedPair> extract(String contentType, Charset charset, InputStream entity)
          Extracts a list of pre-encoded parameters from the HTTP entity to use during the authentification process of a request
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlEncodedFormEntityParamExtractor

public UrlEncodedFormEntityParamExtractor()
Method Detail

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-Type
charset - the HTTP request entity's charset
entity - 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.