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