NextApp Echo2
v2.1.1

nextapp.echo2.webcontainer
Class NewInstanceService

java.lang.Object
  extended by nextapp.echo2.webcontainer.NewInstanceService
All Implemented Interfaces:
nextapp.echo2.webrender.Service

public class NewInstanceService
extends java.lang.Object
implements nextapp.echo2.webrender.Service

Service which launches a new instance of an Echo application.


Field Summary
static NewInstanceService INSTANCE
          Singleton instance.
 
Fields inherited from interface nextapp.echo2.webrender.Service
DO_NOT_CACHE
 
Method Summary
 java.lang.String getId()
          Returns the unique identifier of this service.
 int getVersion()
          Returns the version of the service to be retrieved.
 void service(nextapp.echo2.webrender.Connection conn)
          Services an HTTP request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NewInstanceService INSTANCE
Singleton instance.

Method Detail

getId

public java.lang.String getId()
Description copied from interface: nextapp.echo2.webrender.Service
Returns the unique identifier of this service.

Specified by:
getId in interface nextapp.echo2.webrender.Service
Returns:
The unique identifier of this service.
See Also:
Service.getId()

getVersion

public int getVersion()
Description copied from interface: nextapp.echo2.webrender.Service
Returns the version of the service to be retrieved. When a service is requested with an updated version number, a non-cached copy will be used. getVersion() should return distinct values whenever the service's content may have changed.

Specified by:
getVersion in interface nextapp.echo2.webrender.Service
Returns:
The current version number of the service.
See Also:
Service.getVersion()

service

public void service(nextapp.echo2.webrender.Connection conn)
             throws java.io.IOException
Description copied from interface: nextapp.echo2.webrender.Service
Services an HTTP request. Information about the HTTP request as well as methods for issuing a response are available from the provided Connection object.

Specified by:
service in interface nextapp.echo2.webrender.Service
Parameters:
conn - A Connection object which wraps HttpServletRequest and HttpServletResponse objects and provides access to the facilities of the Echo application container.
Throws:
java.io.IOException - in the event of errors related to processing the HTTP request or producing a response.
See Also:
Service.service(nextapp.echo2.webrender.Connection)

NextApp Echo2
v2.1.1