com.vaadin.terminal
Interface RequestHandler

All Superinterfaces:
Serializable
All Known Implementing Classes:
ApplicationResourceHandler, BootstrapHandler, UnsupportedBrowserHandler

public interface RequestHandler
extends Serializable

Handler for producing a response to non-UIDL requests. Handlers can be added to applications using Application.addRequestHandler(RequestHandler)


Method Summary
 boolean handleRequest(Application application, WrappedRequest request, WrappedResponse response)
          Handles a non-UIDL request.
 

Method Detail

handleRequest

boolean handleRequest(Application application,
                      WrappedRequest request,
                      WrappedResponse response)
                      throws IOException
Handles a non-UIDL request. If a response is written, this method should return false to indicate that no more request handlers should be invoked for the request.

Parameters:
application - The application to which the request belongs
request - The request to handle
response - The response object to which a response can be written.
Returns:
true if a response has been written and no further request handlers should be called, otherwise false
Throws:
IOException


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.