Class Expect100ContinueUsage

java.lang.Object
org.glassfish.jersey.client.innate.Expect100ContinueUsage

public final class Expect100ContinueUsage extends Object
Utility class to check whether it's possible to send the Expect header within request.
  • Method Details

    • isAllowed

      public static boolean isAllowed(ClientRequest request, String requestMethod)
      Checks if usage of the Expect header with 100-Continue value is allowed
      Parameters:
      request - client's request
      requestMethod - method of the request (GET, POST, PUT etc).
      Returns:
      true if the Expect header is allowed.