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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisAllowed(ClientRequest request, String requestMethod)Checks if usage of the Expect header with 100-Continue value is allowed
-
-
-
Method Detail
-
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 requestrequestMethod- method of the request (GET, POST, PUT etc).- Returns:
- true if the Expect header is allowed.
-
-