Spring Social

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.

Author:
Keith Donald, Craig Walls

Method Summary
 void postConnect(Connection<S> connection, org.springframework.web.context.request.WebRequest request)
          Called immediately after the connection is established.
 void preConnect(ConnectionFactory<S> connectionFactory, org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> parameters, org.springframework.web.context.request.WebRequest request)
          Called during connection initiation, immediately before user authorization.
 

Method Detail

preConnect

void preConnect(ConnectionFactory<S> connectionFactory,
                org.springframework.util.MultiValueMap<java.lang.String,java.lang.String> parameters,
                org.springframework.web.context.request.WebRequest request)
Called during connection initiation, immediately before user authorization. May be used to store custom connection attributes in the session before redirecting the user to the provider's site or to contribute parameters to the authorization URL.


postConnect

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


Spring Social