| nextapp.echo2.webrender.Service
All known Subclasses: nextapp.echo2.webcontainer.WindowHtmlService, nextapp.echo2.webcontainer.NewInstanceService, nextapp.echo2.webrender.test.NullService, nextapp.echo2.webrender.service.AsyncMonitorService, nextapp.echo2.webrender.service.StaticTextService, nextapp.echo2.webrender.service.SynchronizeService, nextapp.echo2.webrender.service.SessionExpiredService, nextapp.echo2.testapp.webrender.NewInstanceService, nextapp.echo2.webcontainer.image.AbstractImageService, nextapp.echo2.webrender.service.StaticBinaryService, nextapp.echo2.webrender.service.JavaScriptService,
Service | public interface Service (Code) | | An interface for objects that process Connection s, parsing an
HTTP request and producing an HTTP response.
Every service is identified by a unique identifier. When the client
browser makes a request of the server and provides the identifier of this
service, its service() method will be invoked. Every request
to an Echo application from a client browser will invoke a service.
|
Field Summary | |
final public static int | DO_NOT_CACHE A value returned by getVersion() to indicate that a
service should not be cached. |
Method Summary | |
public String | getId() Returns the unique identifier of this service. | public int | getVersion() Returns the version of the service to be retrieved. | public void | service(Connection conn) Services an HTTP request. |
DO_NOT_CACHE | final public static int DO_NOT_CACHE(Code) | | A value returned by getVersion() to indicate that a
service should not be cached.
|
getId | public String getId()(Code) | | Returns the unique identifier of this service.
The unique identifier of this service. |
getVersion | public int getVersion()(Code) | | 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.
The current version number of the service. |
service | public void service(Connection conn) throws IOException(Code) | | Services an HTTP request. Information about the HTTP request as well
as methods for issuing a response are available from the provided
Connection object.
Parameters: conn - A Connection object which wraps HttpServletRequest and HttpServletResponse objects and providesaccess to the facilities of the Echo application container. throws: IOException - in the event of errors related to processing theHTTP request or producing a response. |
|
|