- All Known Subinterfaces:
- CacheableService
- All Known Implementing Classes:
- CacheableServiceWrapper, ComponentHierarchyViewer, ContainerPaneUI, ContentPaneUI, Controller, Initializer, StaticBinary, StaticText, Template, UnknownIdService, 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. |
getId
public Id getId()
- 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.