Package org.springframework.social.connect

Examples of org.springframework.social.connect.NotConnectedException


  @SuppressWarnings("unchecked")
  public <A> Connection<A> getPrimaryConnection(Class<A> apiType) {
    String providerId = getProviderId(apiType);
    Connection<A> connection = (Connection<A>) findPrimaryConnection(providerId);
    if (connection == null) {
      throw new NotConnectedException(providerId);
    }
    return connection;
  }
View Full Code Here


  }

  public <A> Connection<A> getPrimaryConnection(Class<A> apiType) {
    Connection<A> primaryConnection = findPrimaryConnection(apiType);
    if (primaryConnection == null) {
      throw new NotConnectedException(getProviderId(apiType));
    }
    return primaryConnection;
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.connect.NotConnectedException

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.