Class RequesterFactory


  • public final class RequesterFactory
    extends Object

    Factory for returning regular (non-singleton) requesters.

    Since:
    1.2.0
    • 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.