public final class StringResource extends Object
| Constructor and Description | 
|---|
| StringResource(String body,
              String encoding)convenience constructor; sets body to 'body' and sets lastModified to now | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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.Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.