|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.velocity.runtime.resource.util.StringResource
public final class StringResource
Wrapper for Strings containing templates, allowing to add additional meta data like timestamps.
Constructor Summary | |
---|---|
StringResource(String body,
String encoding)
convenience constructor; sets body to 'body' and sets lastModified to now |
Method Summary | |
---|---|
String |
getBody()
Sets the template body. |
String |
getEncoding()
Returns the encoding of this String resource. |
long |
getLastModified()
Returns the modification date of the template. |
void |
setBody(String body)
Sets a new value for the template body. |
void |
setEncoding(String encoding)
Sets the encoding of this string resource. |
void |
setLastModified(long lastModified)
Changes the last modified parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringResource(String body, String encoding)
body
- Method Detail |
---|
public String getBody()
public long getLastModified()
public void setBody(String body)
body
- New body valuepublic void setLastModified(long lastModified)
lastModified
- The modification time in millis.public String getEncoding()
public void setEncoding(String encoding)
encoding
- The new encoding of this resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |