Class RequesterFactory
- java.lang.Object
-
- com.github.dannil.scbjavaclient.communication.http.requester.RequesterFactory
-
public final class RequesterFactory extends Object
Factory for returning regular (non-singleton) requesters.
- Since:
- 1.2.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractRequester
getRequester(HttpRequestMethod method)
Returns a regular (non-singleton) requester which matches the method.static AbstractRequester
getRequester(HttpRequestMethod method, Charset charset)
Returns a regular (non-singleton) requester which matches the method.
-
-
-
Method Detail
-
getRequester
public static AbstractRequester getRequester(HttpRequestMethod 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.- Parameters:
method
- the method (i.e. GET or POST)- Returns:
- a regular (non-singleton) requester which matches the method.
-
getRequester
public static AbstractRequester getRequester(HttpRequestMethod 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.- Parameters:
method
- the method (i.e. GET or POST)charset
- the character encoding to use- Returns:
- a regular (non-singleton) requester which matches the method.
-
-