Package com.lbslocal.api.proxy

Examples of com.lbslocal.api.proxy.Proxy


  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    TokenValidated tokenValidated;
        Proxy proxy;
        try
        {
            // Levanta os dados da chamada
            proxy = new Proxy(request);
           
            // cetifica que é chamada de log
            if (proxy.TypeCall == Proxy.ServiceLog)
            {
              tokenValidated = Common.ValidateUser(proxy);
View Full Code Here


  /**
   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    TokenValidated tokenValidated = new TokenValidated();
    Proxy proxy;
    String valor = "var exception = '%s';";

        try
        {
            // levanta parametros para o Proxy
            proxy = new Proxy(request);

            tokenValidated = Common.ValidateUser(proxy);
            switch (proxy.TypeCall)
            {
                // É download de javascript
View Full Code Here

   * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
   *      response)
   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    TokenValidated tokenValidated;
    Proxy proxy;
    String valor = "var exception = '%s';";
    try {
      // trata chamada
      proxy = new Proxy(request);

      // autentica usuário
      tokenValidated = Common.ValidateUser(proxy);
      // Qual serviço
      if (proxy.TypeCall == Proxy.ServiceRequest) {
        switch (proxy.GetWebservice()) {
        case Webservices.AddressFinder:
          valor = ControlAddressFinder.runService(proxy, tokenValidated);
          break;
        case Webservices.MapRender:
          valor = ControlMapRender.runService(proxy, tokenValidated);
          break;
        case Webservices.Route:
          valor = ControlRoute.runService(proxy, tokenValidated);
          break;
        case Webservices.Proximity:
          valor = ControlProximity.runService(proxy, tokenValidated);
          break;

        }
        valor = "AjaxCrossCall.remoteloader.callback('" + valor.replace('\'', '`') + "','" + proxy.GetCallback() + "')";

      } else
        valor = String.format(valor, "No Action");
    } catch (Exception ex) {
      valor = String.format(valor, ex.getMessage());
View Full Code Here

TOP

Related Classes of com.lbslocal.api.proxy.Proxy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.