title: how to convert url to java object
body: <p>url:<br>
  <a href="http://www.xxx.com/getUser?userid=1&amp;username=john&amp;usersex=1" rel="nofollow">http://www.xxx.com/getUser?userid=1&amp;username=john&amp;usersex=1</a></p>
  
  <p>Java Class:</p>
  
  <pre><code>Class User{
       private long userId;
       private String userName;
       private int userSex;
  
       // get and set methods
       ...
       //constructos
       User(long userId, String userName, int userSex){
            this.userId = userId;
            this.userName = userName;
            this.userSex = userSex;
       }
  }
  </code></pre>
  
  <p>how to convert this url to User object?for this url,i want to get User user = new User(1,"john",1).and does have any java framework?</p>