Package com.sun.sgs.protocol

Examples of com.sun.sgs.protocol.LoginRedirectException


      } catch (ExecutionException e) {
    // login failed
    Throwable cause = e.getCause();
    if (cause instanceof LoginRedirectException) {
        // redirect
        LoginRedirectException redirectException =
      (LoginRedirectException) cause;
       
                    loginRedirect(redirectException.getNode(),
                                  redirectException.getProtocolDescriptors());
       
    } else if (cause instanceof LoginFailureException) {
        loginFailure(cause.getMessage(), cause.getCause());
    } else {
        loginFailure(e.getMessage(), e.getCause());
View Full Code Here


      checkConnectedState();
      Set<ProtocolDescriptor> descriptors =
    ClientSessionServiceImpl.getInstance().
        getProtocolDescriptors(node.getId());
      loginCompletionFuture.setException(
     new LoginRedirectException(node, descriptors));
      state = State.LOGIN_HANDLED;
  }
    }
View Full Code Here

      } catch (ExecutionException e) {
    // login failed
    Throwable cause = e.getCause();
    if (cause instanceof LoginRedirectException) {
        // redirect
        LoginRedirectException redirectException =
      (LoginRedirectException) cause;
       
                    loginRedirect(redirectException.getNodeId(),
                                  redirectException.getProtocolDescriptors());
       
    } else if (cause instanceof LoginFailureException) {
        loginFailure(cause.getMessage(), cause.getCause());
    } else {
        loginFailure(e.getMessage(), e.getCause());
View Full Code Here

  synchronized (lock) {
      checkConnectedState();
      Set<ProtocolDescriptor> descriptors =
    sessionService.getProtocolDescriptors(nodeId);
      setupCompletionFuture.setException(
     new LoginRedirectException(nodeId, descriptors));
      state = State.LOGIN_HANDLED;
  }
    }
View Full Code Here

  synchronized (lock) {
      checkConnectedState();
      Set<ProtocolDescriptor> descriptors =
    sessionService.getProtocolDescriptors(nodeId);
      setupCompletionFuture.setException(
     new LoginRedirectException(nodeId, descriptors));
      state = State.LOGIN_HANDLED;
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.sgs.protocol.LoginRedirectException

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.