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>
AcceptNegotiatorBuilder
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description AcceptNegotiatorBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHandler(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:AcceptNegotiatorBuilder
Adds a handler.- Specified by:
addHandler
in interfaceAcceptNegotiatorBuilder<H>
- Parameters:
contentType
-Content-Type
handled by the handler. This may include wild cards. For example:image/*
handler
- Handler.
-
build
public AcceptNegotiator<H> build() throws NoAcceptHandlersException
Description copied from interface:AcceptNegotiatorBuilder
Builds theAcceptNegotiator
.- Specified by:
build
in interfaceAcceptNegotiatorBuilder<H>
- Returns:
AcceptNegotiator
.- Throws:
NoAcceptHandlersException
- If no handlers configured.
-
-