Package net.officefloor.web.build
Interface HttpObjectResponderFactory
-
- All Known Implementing Classes:
JacksonHttpObjectResponderFactory
public interface HttpObjectResponderFactoryFactory for the creation ofHttpObjectResponderinstances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <E extends java.lang.Throwable>
HttpObjectResponder<E>createHttpEscalationResponder(java.lang.Class<E> escalationType)Creates theHttpObjectResponderfor theEscalationtype.<T> HttpObjectResponder<T>createHttpObjectResponder(java.lang.Class<T> objectType)Creates theHttpObjectResponderfor theObjecttype.java.lang.StringgetContentType()Obtains theContent-Typesupported by the createHttpObjectResponderinstances.
-
-
-
Method Detail
-
getContentType
java.lang.String getContentType()
Obtains theContent-Typesupported by the createHttpObjectResponderinstances.- Returns:
Content-Type.
-
createHttpObjectResponder
<T> HttpObjectResponder<T> createHttpObjectResponder(java.lang.Class<T> objectType)
Creates theHttpObjectResponderfor theObjecttype.- Type Parameters:
T- Object type.- Parameters:
objectType-Objecttype.- Returns:
HttpObjectResponderfor theObjecttype.
-
createHttpEscalationResponder
<E extends java.lang.Throwable> HttpObjectResponder<E> createHttpEscalationResponder(java.lang.Class<E> escalationType)
Creates theHttpObjectResponderfor theEscalationtype.- Type Parameters:
E-Escalationtype.- Parameters:
escalationType-Escalationtype.- Returns:
HttpObjectResponderfor theEscalationtype.
-
-