org.apache.deft.example.handler
Class BasicHandlerExample
java.lang.Object
org.apache.deft.web.handler.RequestHandler
org.apache.deft.example.handler.BasicHandlerExample
- All Implemented Interfaces:
- Cloneable
public class BasicHandlerExample
- extends RequestHandler
This is a basic handler, which does nothing more than write output and associate itself with a path. The Path
annotation below defines the path on which this handler is invoked. When executed as part of the server example:
http://localhost:8080/
The handler will send a simple message to the caller, and nothing more.
- See Also:
Path,
DeftServerExample
BasicHandlerExample
public BasicHandlerExample()
get
public void get(HttpRequest request,
HttpResponse response)
- Overrides:
get in class RequestHandler
Copyright © 2010-2011. All Rights Reserved.