Class Expect100ContinueUsage
java.lang.Object
org.glassfish.jersey.client.innate.Expect100ContinueUsage
Utility class to check whether it's possible to send the Expect header within request.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isAllowed
(ClientRequest request, String requestMethod) Checks if usage of the Expect header with 100-Continue value is allowed
-
Method Details
-
isAllowed
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.
-