public final class RequesterSingletonFactory extends Object
Factory for returning singleton requesters. The regular RequesterFactory is
recommended instead of this class; this class should only be used if you really need a
singleton.
| Modifier and Type | Method and Description |
|---|---|
static AbstractRequester |
getRequester(RequestMethod method)
Returns a singleton requester which matches the method.
|
static AbstractRequester |
getRequester(RequestMethod method,
Charset charset)
Returns a singleton requester which matches the method.
|
public static AbstractRequester getRequester(RequestMethod method)
Returns a 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 singleton requester which matches the method. All 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.