Class EntityTagDelegate
- java.lang.Object
-
- org.jboss.resteasy.plugins.delegates.EntityTagDelegate
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<EntityTag>
public class EntityTagDelegate extends Object implements RuntimeDelegate.HeaderDelegate<EntityTag>
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description static EntityTagDelegateINSTANCE
-
Constructor Summary
Constructors Constructor Description EntityTagDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityTagfromString(String value)Parse the supplied value and create an instance ofT.StringtoString(EntityTag value)Convert the supplied value to a String.
-
-
-
Field Detail
-
INSTANCE
public static final EntityTagDelegate INSTANCE
-
-
Method Detail
-
fromString
public EntityTag fromString(String value) throws IllegalArgumentException
Description copied from interface:RuntimeDelegate.HeaderDelegateParse the supplied value and create an instance ofT.- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<EntityTag>- Parameters:
value- the string value.- Returns:
- the newly created instance of
T. - Throws:
IllegalArgumentException- if the supplied string cannot be parsed or isnull.
-
toString
public String toString(EntityTag value)
Description copied from interface:RuntimeDelegate.HeaderDelegateConvert the supplied value to a String.- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<EntityTag>- Parameters:
value- the value of typeT.- Returns:
- a String representation of the value.
-
-