Spring Integration

org.springframework.integration.twitter.oauth
Interface AccessTokenInitialRequestProcessListener

All Known Implementing Classes:
ConsoleBasedAccessTokenInitialRequestProcessListener

public interface AccessTokenInitialRequestProcessListener

if the factory bean isn't provided a 'accesstoken' and 'accesstokensecret', then it will try to obtain those bits of informatio on the users behalf.

In doing so it will need input fro the user (automatic or human intervention is required)

Author:
Josh Long

Method Summary
 void failure(Throwable t)
          Callback in case something goes wrong at any point in the process.
 String openUrlAndReturnPin(String urlToOpen)
           
 void persistReturnedAccessToken(twitter4j.http.AccessToken accessToken)
           
 

Method Detail

openUrlAndReturnPin

String openUrlAndReturnPin(String urlToOpen)
                           throws Exception
Throws:
Exception

persistReturnedAccessToken

void persistReturnedAccessToken(twitter4j.http.AccessToken accessToken)
                                throws Exception
Throws:
Exception

failure

void failure(Throwable t)
Callback in case something goes wrong at any point in the process. Up to client to intervene

Parameters:
t - the exception thrown (if any). Could be null if none available

Spring Integration

Copyright © 2010. All Rights Reserved.