Package net.officefloor.web.build
Interface HttpObjectResponderFactory
- All Known Implementing Classes:
JacksonHttpObjectResponderFactory,SpringHttpObjectResponderFactory
public interface HttpObjectResponderFactory
Factory for the creation of
HttpObjectResponder instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescription<E extends Throwable>
HttpEscalationResponder<E>createHttpEscalationResponder(Class<E> escalationType, boolean isOfficeFloorEscalation) Creates theHttpObjectResponderfor theEscalationtype.<T> HttpObjectResponder<T>createHttpObjectResponder(Class<T> objectType) Creates theHttpObjectResponderfor theObjecttype.Obtains theContent-Typesupported by the createHttpObjectResponderinstances.
-
Method Details
-
getContentType
String getContentType()Obtains theContent-Typesupported by the createHttpObjectResponderinstances.- Returns:
Content-Type.
-
createHttpObjectResponder
Creates the
HttpObjectResponderfor theObjecttype.Should this not handle the
Objecttype, it should returnnull.- Type Parameters:
T- Object type.- Parameters:
objectType-Objecttype.- Returns:
HttpObjectResponderfor theObjecttype.
-
createHttpEscalationResponder
<E extends Throwable> HttpEscalationResponder<E> createHttpEscalationResponder(Class<E> escalationType, boolean isOfficeFloorEscalation) Creates the
HttpObjectResponderfor theEscalationtype.Should this not handle the
Escalationtype, it should returnnull.- Type Parameters:
E-Escalationtype.- Parameters:
escalationType-Escalationtype.isOfficeFloorEscalation- Indicates ifEscalationis handled byOfficeFloor. Continuing to provide aHttpEscalationResponderindicates a custom response is being provided.- Returns:
HttpObjectResponderfor theEscalationtype.
-