org.glassfish.fighterfish.sample.uas.simplejaxrs
Class MyResource

java.lang.Object
  extended by org.glassfish.fighterfish.sample.uas.simplejaxrs.MyResource

@RequestScoped
public class MyResource
extends java.lang.Object

Example resource class hosted at the URI path "/login"


Constructor Summary
MyResource()
           
 
Method Summary
 java.lang.String getIt()
          Method processing HTTP GET requests, producing "text/plain" MIME media type.
 java.lang.String getLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyResource

public MyResource()
Method Detail

getIt

public java.lang.String getIt()
Method processing HTTP GET requests, producing "text/plain" MIME media type.

Returns:
String that will be send back as a response of type "text/plain".

getLogin

public java.lang.String getLogin(@Context
                                 javax.servlet.http.HttpServletRequest request,
                                 @Context
                                 javax.servlet.http.HttpServletResponse response)
                          throws javax.servlet.ServletException
Throws:
javax.servlet.ServletException


Copyright © 2013. All Rights Reserved.