Java桌面应用程序连接到GAE

| 我正在尝试使用javax servlet将Java中的桌面应用程序连接到Google App Engine。但是我不确定该怎么办。 用于登录的Web服务器管理器是这样的
 public class UserServicesP3Servlet extends HttpServlet 
{
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException 
{       
    doGet(req,resp);
}
在浏览器中,我使用
else if(address.indexOf(\"/dinamicas/login\")!=-1)
    {
            StringMaisAutenticado sma = Autenticacao.login(req,resp,param1,param2);
            resposta = sma.string;
            utilizadorAutenticado = sma.utilizadorAutent;
    }
我不确定如何在桌面上登录。有人可以指出我正确的方向吗? 感谢您的时间。     
已邀请:
        您可以通过三种方式调整应用的身份验证选项: 使用谷歌帐户 Google应用程序的用户 使用OpenID 根据您的情况,您可以验证用户身份,例如
UserService userService = UserServiceFactory.getUserService(); 
User user = userService.getCurrentUser(); 
if (user == null) 
    response.sendRedirect(\"/index.jsp\"); 
接下来,您可以使用AuthSub或OAuth授权对他们的数据的访问。 我希望这有帮助。     

要回复问题请先登录注册