Package net.officefloor.web.build
Interface AcceptNegotiatorBuilder<H>
-
- All Known Implementing Classes:
AcceptNegotiatorBuilderImpl
public interface AcceptNegotiatorBuilder<H>Builds theAcceptNegotiator.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddHandler(java.lang.String contentType, H handler)Adds a handler.AcceptNegotiator<H>build()Builds theAcceptNegotiator.
-
-
-
Method Detail
-
addHandler
void addHandler(java.lang.String contentType, H handler)Adds a handler.- Parameters:
contentType-Content-Typehandled by the handler. This may include wild cards. For example:image/*handler- Handler.
-
build
AcceptNegotiator<H> build() throws NoAcceptHandlersException
Builds theAcceptNegotiator.- Returns:
AcceptNegotiator.- Throws:
NoAcceptHandlersException- If no handlers configured.
-
-