Package net.officefloor.web.accept
Class AcceptNegotiatorBuilderImpl<H>
- java.lang.Object
-
- net.officefloor.web.accept.AcceptNegotiatorBuilderImpl<H>
-
- All Implemented Interfaces:
AcceptNegotiatorBuilder<H>
public class AcceptNegotiatorBuilderImpl<H> extends java.lang.Object implements AcceptNegotiatorBuilder<H>
AcceptNegotiatorBuilderimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AcceptNegotiatorBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddHandler(java.lang.String contentType, H handler)Adds a handler.AcceptNegotiator<H>build()Builds theAcceptNegotiator.
-
-
-
Method Detail
-
addHandler
public void addHandler(java.lang.String contentType, H handler)Description copied from interface:AcceptNegotiatorBuilderAdds a handler.- Specified by:
addHandlerin interfaceAcceptNegotiatorBuilder<H>- Parameters:
contentType-Content-Typehandled by the handler. This may include wild cards. For example:image/*handler- Handler.
-
build
public AcceptNegotiator<H> build() throws NoAcceptHandlersException
Description copied from interface:AcceptNegotiatorBuilderBuilds theAcceptNegotiator.- Specified by:
buildin interfaceAcceptNegotiatorBuilder<H>- Returns:
AcceptNegotiator.- Throws:
NoAcceptHandlersException- If no handlers configured.
-
-