Package net.officefloor.web.build
Interface HttpObjectResponderFactory
-
- All Known Implementing Classes:
JacksonHttpObjectResponderFactory
public interface HttpObjectResponderFactory
Factory for the creation ofHttpObjectResponder
instances.- 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 theHttpObjectResponder
for theEscalation
type.<T> HttpObjectResponder<T>
createHttpObjectResponder(java.lang.Class<T> objectType)
Creates theHttpObjectResponder
for theObject
type.java.lang.String
getContentType()
Obtains theContent-Type
supported by the createHttpObjectResponder
instances.
-
-
-
Method Detail
-
getContentType
java.lang.String getContentType()
Obtains theContent-Type
supported by the createHttpObjectResponder
instances.- Returns:
Content-Type
.
-
createHttpObjectResponder
<T> HttpObjectResponder<T> createHttpObjectResponder(java.lang.Class<T> objectType)
Creates theHttpObjectResponder
for theObject
type.- Type Parameters:
T
- Object type.- Parameters:
objectType
-Object
type.- Returns:
HttpObjectResponder
for theObject
type.
-
createHttpEscalationResponder
<E extends java.lang.Throwable> HttpObjectResponder<E> createHttpEscalationResponder(java.lang.Class<E> escalationType)
Creates theHttpObjectResponder
for theEscalation
type.- Type Parameters:
E
-Escalation
type.- Parameters:
escalationType
-Escalation
type.- Returns:
HttpObjectResponder
for theEscalation
type.
-
-