public interface ExpectationHandler
Modifier and Type | Interface and Description |
---|---|
static interface |
ExpectationHandler.AckAction
Interface, using which
ExpectationHandler may confirm or refuse
client expectation. |
Modifier and Type | Method and Description |
---|---|
void |
onExpectAcknowledgement(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
ExpectationHandler.AckAction action)
Method is getting called by framework if HTTP request contains "Expect"
header.
|
void onExpectAcknowledgement(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, ExpectationHandler.AckAction action) throws Exception
ExpectationHandler.AckAction
.
Use ExpectationHandler.AckAction.acknowledge()
to confirm expectation, or
ExpectationHandler.AckAction.fail()
to refuse it.request
- HttpServletRequest
response
- HttpServletRequest
action
- ExpectationHandler.AckAction
.Exception
Copyright © 2015 Oracle Corporation. All rights reserved.