public interface ServiceHandler
Implementations can be registered with the ServiceManager
or in an
ApplicationConfiguration
. Once registered, a service handler can be accessed by a URL
with a specific parameter. This URL can be obtained by
ServiceManager.getServiceHandlerUrl(String)
. Example:
RWT.getServiceManager().registerServiceHandler( "download", new MyServiceHandler() ); String url = RWT.getServiceManager().getServiceHandlerUrl( "download" );
ServiceManager
Modifier and Type | Method and Description |
---|---|
void |
service(HttpServletRequest request,
HttpServletResponse response)
This method is called by the framework when a request for a service handler is received by the
client.
|
void service(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException
request
- the request that has been received from the clientresponse
- the response that will be sent to the clientjava.io.IOException
ServletException
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0