org.springframework.social.connect.web
Interface ConnectInterceptor<S>

Type Parameters:
S - The service API hosted by the intercepted service provider.

public interface ConnectInterceptor<S>

Listens for service provider connection events. Allows for custom logic to be executed before and after connections are established with a specific service provider.


Method Summary
 void postConnect(Connection<S> connection, WebRequest request)
          Called immediately after the connection is established.
 void preConnect(ConnectionFactory<S> connectionFactory, WebRequest request)
          Called during connection initiation, immediately before user authorization.
 

Method Detail

preConnect

void preConnect(ConnectionFactory<S> connectionFactory,
                WebRequest request)
Called during connection initiation, immediately before user authorization. Used to store custom connection attributes in the session before redirecting the user to the provider's site.


postConnect

void postConnect(Connection<S> connection,
                 WebRequest request)
Called immediately after the connection is established. Used to invoke the service API on behalf of the user upon connecting.