Class DynamicContent.InstanceAdapter
- java.lang.Object
-
- org.glassfish.appclient.server.core.jws.servedcontent.DynamicContent.InstanceAdapter
-
- All Implemented Interfaces:
DynamicContent.Instance
- Enclosing interface:
- DynamicContent
public static class DynamicContent.InstanceAdapter extends Object implements DynamicContent.Instance
Convenience implementation of Instance.
-
-
Constructor Summary
Constructors Constructor Description InstanceAdapter(String text)Creates a new instance of InstanceImpl (!) holding the result of a specific substitution of values for placeholders.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()Returns the content associated with this InstanceImpl.DategetTimestamp()Returns the time stamp associated with this content InstanceImpl.
-
-
-
Constructor Detail
-
InstanceAdapter
public InstanceAdapter(String text)
Creates a new instance of InstanceImpl (!) holding the result of a specific substitution of values for placeholders.- Parameters:
text- the content for this new InstanceImpl
-
-
Method Detail
-
getTimestamp
public Date getTimestamp()
Returns the time stamp associated with this content InstanceImpl.- Specified by:
getTimestampin interfaceDynamicContent.Instance- Returns:
- the Date representing when this InstanceImpl was created
-
getText
public String getText()
Returns the content associated with this InstanceImpl.- Specified by:
getTextin interfaceDynamicContent.Instance- Returns:
- the text content stored in the InstanceImpl
-
-