[ 
https://issues.apache.org/jira/browse/DEFT-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13073458#comment-13073458
 ] 

Roger Schildmeijer commented on DEFT-100:
-----------------------------------------

sub-project could be an idea. Not sure I like the idea to have both versions 
(old one, currently in use + the one proposed in this issue) in the main deft 
code. (adds complexity to the end user)

> Annotate RequestHandlers
> ------------------------
>
>                 Key: DEFT-100
>                 URL: https://issues.apache.org/jira/browse/DEFT-100
>             Project: Deft
>          Issue Type: New Feature
>            Assignee: Johnathan Meehan
>            Priority: Minor
>
> Just a thought.
> Proposal: 
>     @Path("/")
>     class SynchronousRequestHandler extends RequestHandler {
>         @Override
>         public void get(HttpRequest request, HttpResponse response) {
>             response.write("hello world!");
>         }
>     }
>     public static void main(String[] args) {
>         List <RequestHandler> handlers = new LinkedList<RequestHandler>();
>         handlers.add(new SynchronousRequestHandler());
>         HttpServer server = new HttpServer(new Application(handlers));
>         server.listen(8080);
>         IOLoop.INSTANCE.start();
>     }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to