|
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.JavaScriptService
public class JavaScriptService
A service which renders JavaScript resource files.
| Field Summary |
|---|
| Fields inherited from interface nextapp.echo.webcontainer.Service |
|---|
DO_NOT_CACHE |
| Constructor Summary | |
|---|---|
JavaScriptService(java.lang.String id,
java.lang.String content)
Creates a new JavaScriptService. |
|
| Method Summary | |
|---|---|
static JavaScriptService |
forResource(java.lang.String id,
java.lang.String resourceName)
Creates a new JavaScript service from the specified
resource in the CLASSPATH. |
static JavaScriptService |
forResources(java.lang.String id,
java.lang.String[] resourceNames)
|
java.lang.String |
getId()
Returns the unique identifier of this service. |
int |
getVersion()
DO_NOT_CACHE is returned for JavaScript
to avoid possibility of ever running out-of-date JavaScript in the
event an application is updated and redeployed. |
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 JavaScriptService(java.lang.String id,
java.lang.String content)
JavaScriptService.
id - the Service idcontent - the JavaScript content| Method Detail |
|---|
public static JavaScriptService forResource(java.lang.String id,
java.lang.String resourceName)
JavaScript service from the specified
resource in the CLASSPATH.
id - the Service idresourceName - the CLASSPATH resource name containing
the JavaScript content
JavaScriptService
public static JavaScriptService forResources(java.lang.String id,
java.lang.String[] resourceNames)
public java.lang.String getId()
Service
getId in interface ServiceService.getId()public int getVersion()
DO_NOT_CACHE is returned for JavaScript
to avoid possibility of ever running out-of-date JavaScript in the
event an application is updated and redeployed.
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 | ||||||||