|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echoservlet.StaticText
A service that renders static text data.
Constructor Summary | |
StaticText(ContentType contentType,
java.lang.String data)
Deprecated. The StaticText(String, ContentType, String) constructor should be used instead. Use of this version may result in errors if applications are migrated between VMs, due to the Service having a different identifier on each VM. |
|
StaticText(java.lang.String identifier,
ContentType contentType,
java.lang.String data)
Creates a new text content object. |
Method Summary | |
static StaticText |
createFromResource(java.lang.String resourceName)
Deprecated. The createFromResource(String, String) method should be used instead. Use of this version may result in errors if applications are migrated between VMs, due to the Service having a different identifier on each VM. |
static StaticText |
createFromResource(java.lang.String identifier,
java.lang.String resourceName)
Creates a StaticText object by way of a resource name. |
ContentType |
getContentType()
Returns the content type. |
Id |
getId()
Returns a unique identifier for this service. |
int |
getVersion()
Returns zero to indicate that the content will never change. |
void |
service(Connection conn)
Services an HTTP request. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StaticText(ContentType contentType, java.lang.String data)
contentType
- The content type of the object.data
- A string referencing the content.public StaticText(java.lang.String identifier, ContentType contentType, java.lang.String data)
identifier
- A unique identifier for this service.contentType
- The content type of the object.data
- A string referencing the content.Method Detail |
public static StaticText createFromResource(java.lang.String resourceName)
StaticText
object by way of a resource name.
The content type will be determined from the resource's extension.
JavaScript resources will be compressed.
resourceName
- The name of the resource from which to create the
StaticText
object.
StaticText
object containing the content of the
specified resource.public static StaticText createFromResource(java.lang.String identifier, java.lang.String resourceName)
StaticText
object by way of a resource name.
The content type will be determined from the resource's extension.
JavaScript resources will be compressed.
identifier
- A unique identifier for this service.resourceName
- The name of the resource from which to create the
StaticText
object.
StaticText
object containing the content of the
specified resource.public ContentType getContentType()
public Id getId()
Service
getId
in interface Service
Service.getId()
public int getVersion()
getVersion
in interface CacheableService
public void service(Connection conn) throws java.io.IOException
Service
service
in interface Service
conn
- A Connection
object which wraps
HttpServletRequest
and
HttpServletResponse
objects and provides
access to the facilities of the Echo application container.
java.io.IOException
- in the event of errors related to processing the
HTTP request or producing a response.Service.service(Connection)
|
NextApp Echo App Container 1.1.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |