Class EntityTagProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.EntityTagProvider
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<EntityTag>,HeaderDelegateProvider<EntityTag>
@Singleton public class EntityTagProvider extends Object implements HeaderDelegateProvider<EntityTag>
ETagheader delegate provider.- Author:
- Marc Hadley, Marek Potociar
-
-
Constructor Summary
Constructors Constructor Description EntityTagProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityTagfromString(String header)booleansupports(Class<?> type)Ascertain if the Provider supports a particular type.StringtoString(EntityTag header)
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> type)
Description copied from interface:HeaderDelegateProviderAscertain if the Provider supports a particular type.- Specified by:
supportsin interfaceHeaderDelegateProvider<EntityTag>- Parameters:
type- the type that is to be supported.- Returns:
- true if the type is supported, otherwise false.
-
toString
public String toString(EntityTag header)
- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<EntityTag>
-
fromString
public EntityTag fromString(String header)
- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<EntityTag>
-
-