public final class RequesterFactory extends Object
Factory for returning regular (non-singleton) requesters.
| Modifier and Type | Method and Description |
|---|---|
static AbstractRequester |
getRequester(RequestMethod method)
Returns a regular (non-singleton) requester which matches the method.
|
static AbstractRequester |
getRequester(RequestMethod method,
Charset charset)
Returns a regular (non-singleton) requester which matches the method.
|
public static AbstractRequester getRequester(RequestMethod method)
Returns a regular (non-singleton) requester which matches the method. All
requests are routed to match the
FALLBACK_LOCALE and responses are read as UTF-8 character encoding.
method - the method (i.e. GET or POST)public static AbstractRequester getRequester(RequestMethod method, Charset charset)
Returns a regular (non-singleton) requester which matches the method. All
requests are routed to match the specified Locale and responses are
read as to match the character encoding.
method - the method (i.e. GET or POST)charset - the character encoding to useCopyright © 2017. All rights reserved.