Class TypeCoercerHttpRequestBodyConverter
- java.lang.Object
-
- org.apache.tapestry5.http.internal.TypeCoercerHttpRequestBodyConverter
-
- All Implemented Interfaces:
HttpRequestBodyConverter
public final class TypeCoercerHttpRequestBodyConverter extends java.lang.Object implements HttpRequestBodyConverter
-
-
Constructor Summary
Constructors Constructor Description TypeCoercerHttpRequestBodyConverter(TypeCoercer typeCoercer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tconvert(HttpServletRequest request, java.lang.Class<T> type)Converts the body of this request.
-
-
-
Constructor Detail
-
TypeCoercerHttpRequestBodyConverter
public TypeCoercerHttpRequestBodyConverter(TypeCoercer typeCoercer)
-
-
Method Detail
-
convert
public <T> T convert(HttpServletRequest request, java.lang.Class<T> type)
Description copied from interface:HttpRequestBodyConverterConverts the body of this request. If this implementation cannot handle this request, probably by not handling its content type, it should returnnull. In addition, if the request body is empty, this method should also returnnull.- Specified by:
convertin interfaceHttpRequestBodyConverter- Parameters:
request- an HttpServletRequest.type- the target type.- Returns:
- an object of the target type or
null.
-
-