|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.webcontainer.service.StaticTextService
public class StaticTextService
A service which renders a text resource, such as a text or XML document.
| Field Summary |
|---|
| Fields inherited from interface nextapp.echo.webcontainer.Service |
|---|
DO_NOT_CACHE |
| Constructor Summary | |
|---|---|
StaticTextService(java.lang.String id,
java.lang.String contentType,
java.lang.String content)
Creates a new StaticTextService. |
|
| Method Summary | |
|---|---|
static StaticTextService |
forResource(java.lang.String id,
java.lang.String contentType,
java.lang.String resourceName)
Creates a new StaticTextService based on the content in the
specified CLASSPATH resource. |
java.lang.String |
getId()
Returns the unique identifier of this service. |
int |
getVersion()
Returns the version of the service to be retrieved. |
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 StaticTextService(java.lang.String id,
java.lang.String contentType,
java.lang.String content)
StaticTextService.
id - the Service identifiercontentType - the content type of the documentcontent - the text| Method Detail |
|---|
public static StaticTextService forResource(java.lang.String id,
java.lang.String contentType,
java.lang.String resourceName)
StaticTextService based on the content in the
specified CLASSPATH resource. A runtime exception will be
thrown in the even the resource does not exist (it generally should not
be caught).
id - the Service identifiercontentType - the content type of the documentresourceName - the path to the content resource in the
CLASSPATH
StaticTextServicepublic java.lang.String getId()
Service
getId in interface ServiceService.getId()public int getVersion()
ServicegetVersion() should return distinct values whenever the
service's content may have changed.
getVersion in interface ServiceService.getVersion()
public void service(Connection conn)
throws java.io.IOException
Service
service in interface Serviceconn - 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 responseService.service(nextapp.echo.webcontainer.Connection)
|
NextApp Echo3 v3.0.rc1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||