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)
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 belongsrequest
- The request to handleresponse
- 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.