org.apache.deft.example.handler
Class BasicHandlerExample

java.lang.Object
  extended by org.apache.deft.web.handler.RequestHandler
      extended by 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

Constructor Summary
BasicHandlerExample()
           
 
Method Summary
 void get(HttpRequest request, HttpResponse response)
           
 
Methods inherited from class org.apache.deft.web.handler.RequestHandler
clone, delete, getCurrentUser, head, isMethodAsynchronous, isMethodAuthenticated, post, put
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicHandlerExample

public BasicHandlerExample()
Method Detail

get

public void get(HttpRequest request,
                HttpResponse response)
Overrides:
get in class RequestHandler


Copyright © 2010-2011. All Rights Reserved.