public final class StringResource
extends java.lang.Object
| 构造器和说明 |
|---|
StringResource(java.lang.String body,
java.lang.String encoding)
convenience constructor; sets body to 'body' and sets lastModified to now
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getBody()
Sets the template body.
|
java.lang.String |
getEncoding()
Returns the encoding of this String resource.
|
long |
getLastModified()
Returns the modification date of the template.
|
void |
setBody(java.lang.String body)
Sets a new value for the template body.
|
void |
setEncoding(java.lang.String encoding)
Sets the encoding of this string resource.
|
void |
setLastModified(long lastModified)
Changes the last modified parameter.
|
public StringResource(java.lang.String body,
java.lang.String encoding)
body - public java.lang.String getBody()
public long getLastModified()
public void setBody(java.lang.String body)
body - New body valuepublic void setLastModified(long lastModified)
lastModified - The modification time in millis.public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
encoding - The new encoding of this resource.