title: Multiple get methods in single Resource class with Restlet
body: <p>here is my code :</p>
  
  <p>this is my application class >>></p>
  
  <pre><code>import org.restlet.Application;
  
  import org.restlet.Restlet;
  
  import org.restlet.routing.Router;
  
  import firstSteps.UserResource;
  
  public class FirstStepsApplication extends Application {
  
      @Override
  
      public synchronized Restlet createRoot() {
  
          Router router = new Router(getContext());
  
          router.attach("/hello", UserResource.class);
  
          router.attach("/isuserloggedin",UserResource.class);
  
          return router;
      }
  
  }
  </code></pre>
  
  <p>this is resource class >>></p>
  
  <pre><code>import org.restlet.resource.Get;
  
  import org.restlet.resource.ServerResource;
  
  /**
   * Resource which has only one representation.
   * 
   */  
  
  public class UserResource extends ServerResource {
  
      @Get
  
      public String userLogin() {
  
          return "This is userLogin method";
       }
  
  
      @Get
  
      public boolean isUserLoggedIn(){
  
          return false;
  
      }
  }
  </code></pre>
  
  <p><code>/hello</code> &amp; <code>/isuserloggedin</code> are mapped to same to resource class but 
  what i want is : when there is <code>/hello</code> then <code>userLogin</code> method should be called 
  and when there is <code>/isuserloggedin</code> then <code>isUserLoggedIn</code> must be called .
  is this possible ??
  or am i going wrong?
  if this is not possible then any one can tell me any other alternative ?</p>