NextApp Echo
App Container 1.1.4

nextapp.echoservlet
Interface Service

All Known Subinterfaces:
CacheableService
All Known Implementing Classes:
AwtImagePeer, CacheableServiceWrapper, ContainerPaneUI, ContentPaneUI, ResourceImagePeer, StaticBinary, StaticText, StreamImagePeer, Template, WindowUI

public interface Service

An interface for objects that process Connections, parsing an HTTP request and producing an HTTP response.

Every service is identified by a unique Id. When the client browser makes a request of the server and provides the Service Id of this service, its service() method will be invoked. Every request to an Echo application from a client browser will invoke a service. Services must be registered with the ServiceRegistry before they can be used.


Method Summary
 Id getId()
          Returns a unique identifier for this service.
 void service(Connection conn)
          Services an HTTP request.
 

Method Detail

getId

public Id getId()
Returns a unique identifier for this service.

Returns:
A unique identifier for this service.

service

public void service(Connection conn)
             throws java.io.IOException
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 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.

NextApp Echo
App Container 1.1.4