private class AnnotationMethodHandlerAdapter.ServletHandlerMethodInvoker extends HandlerMethodInvoker
HandlerMethodInvoker
.Modifier and Type | Field and Description |
---|---|
private boolean |
responseArgumentUsed |
Modifier | Constructor and Description |
---|---|
private |
ServletHandlerMethodInvoker(HandlerMethodResolver resolver) |
Modifier and Type | Method and Description |
---|---|
protected WebDataBinder |
createBinder(NativeWebRequest webRequest,
java.lang.Object target,
java.lang.String objectName) |
protected HttpInputMessage |
createHttpInputMessage(NativeWebRequest webRequest)
Return a
HttpInputMessage for the given NativeWebRequest . |
protected HttpOutputMessage |
createHttpOutputMessage(NativeWebRequest webRequest)
Return a
HttpOutputMessage for the given NativeWebRequest . |
protected void |
doBind(WebDataBinder binder,
NativeWebRequest webRequest) |
ModelAndView |
getModelAndView(java.lang.reflect.Method handlerMethod,
java.lang.Class<?> handlerType,
java.lang.Object returnValue,
ExtendedModelMap implicitModel,
ServletWebRequest webRequest) |
private void |
handleHttpEntityResponse(HttpEntity<?> responseEntity,
ServletWebRequest webRequest) |
private void |
handleResponseBody(java.lang.Object returnValue,
ServletWebRequest webRequest) |
protected void |
raiseMissingParameterException(java.lang.String paramName,
java.lang.Class<?> paramType) |
protected void |
raiseSessionRequiredException(java.lang.String message) |
protected java.lang.Object |
resolveCookieValue(java.lang.String cookieName,
java.lang.Class<?> paramType,
NativeWebRequest webRequest)
Resolves the given
@CookieValue annotation. |
protected java.lang.Object |
resolveDefaultValue(java.lang.String value) |
protected java.lang.String |
resolvePathVariable(java.lang.String pathVarName,
java.lang.Class<?> paramType,
NativeWebRequest webRequest)
Resolves the given
@PathVariable annotation. |
protected java.lang.Object |
resolveStandardArgument(java.lang.Class<?> parameterType,
NativeWebRequest webRequest) |
private void |
writeWithMessageConverters(java.lang.Object returnValue,
HttpInputMessage inputMessage,
HttpOutputMessage outputMessage) |
addReturnValueAsModelAttribute, initBinder, invokeHandlerMethod, isBindingCandidate, parseDefaultValueAttribute, raiseMissingCookieException, raiseMissingHeaderException, resolveCommonArgument, resolveRequestBody, updateModelAttributes
private ServletHandlerMethodInvoker(HandlerMethodResolver resolver)
protected void raiseMissingParameterException(java.lang.String paramName, java.lang.Class<?> paramType) throws java.lang.Exception
raiseMissingParameterException
in class HandlerMethodInvoker
java.lang.Exception
protected void raiseSessionRequiredException(java.lang.String message) throws java.lang.Exception
raiseSessionRequiredException
in class HandlerMethodInvoker
java.lang.Exception
protected WebDataBinder createBinder(NativeWebRequest webRequest, java.lang.Object target, java.lang.String objectName) throws java.lang.Exception
createBinder
in class HandlerMethodInvoker
java.lang.Exception
protected void doBind(WebDataBinder binder, NativeWebRequest webRequest) throws java.lang.Exception
doBind
in class HandlerMethodInvoker
java.lang.Exception
protected HttpInputMessage createHttpInputMessage(NativeWebRequest webRequest) throws java.lang.Exception
HandlerMethodInvoker
HttpInputMessage
for the given NativeWebRequest
.
Throws an UnsupportedOperation1Exception by default.
createHttpInputMessage
in class HandlerMethodInvoker
java.lang.Exception
protected HttpOutputMessage createHttpOutputMessage(NativeWebRequest webRequest) throws java.lang.Exception
HandlerMethodInvoker
HttpOutputMessage
for the given NativeWebRequest
.
Throws an UnsupportedOperationException by default.
createHttpOutputMessage
in class HandlerMethodInvoker
java.lang.Exception
protected java.lang.Object resolveDefaultValue(java.lang.String value)
resolveDefaultValue
in class HandlerMethodInvoker
protected java.lang.Object resolveCookieValue(java.lang.String cookieName, java.lang.Class<?> paramType, NativeWebRequest webRequest) throws java.lang.Exception
HandlerMethodInvoker
@CookieValue
annotation.
Throws an UnsupportedOperationException by default.
resolveCookieValue
in class HandlerMethodInvoker
java.lang.Exception
protected java.lang.String resolvePathVariable(java.lang.String pathVarName, java.lang.Class<?> paramType, NativeWebRequest webRequest) throws java.lang.Exception
HandlerMethodInvoker
@PathVariable
annotation.
Throws an UnsupportedOperationException by default.
resolvePathVariable
in class HandlerMethodInvoker
java.lang.Exception
protected java.lang.Object resolveStandardArgument(java.lang.Class<?> parameterType, NativeWebRequest webRequest) throws java.lang.Exception
resolveStandardArgument
in class HandlerMethodInvoker
java.lang.Exception
public ModelAndView getModelAndView(java.lang.reflect.Method handlerMethod, java.lang.Class<?> handlerType, java.lang.Object returnValue, ExtendedModelMap implicitModel, ServletWebRequest webRequest) throws java.lang.Exception
java.lang.Exception
private void handleResponseBody(java.lang.Object returnValue, ServletWebRequest webRequest) throws java.lang.Exception
java.lang.Exception
private void handleHttpEntityResponse(HttpEntity<?> responseEntity, ServletWebRequest webRequest) throws java.lang.Exception
java.lang.Exception
private void writeWithMessageConverters(java.lang.Object returnValue, HttpInputMessage inputMessage, HttpOutputMessage outputMessage) throws java.io.IOException, HttpMediaTypeNotAcceptableException
java.io.IOException
HttpMediaTypeNotAcceptableException