throws ServletException {
super.init(config);
logger.info("Loading OAuth Servlet");
// load the context-parameters
ServletContext context = config.getServletContext();
consumerRegistrationURL = context.getInitParameter(PARAM_CONSUMER_REGISTRATION_URL);
if(consumerRegistrationURL == null)
consumerRegistrationURL = "/consumer/registration";
authorizationURL = context.getInitParameter(PARAM_TOKEN_AUTHORIZATION_URL);
if(authorizationURL == null)
authorizationURL = "/authorization";
requestTokenURL = context.getInitParameter(PARAM_REQUEST_TOKEN_URL);
if(requestTokenURL == null)
requestTokenURL = "/requestToken";
accessTokenURL = context.getInitParameter(PARAM_ACCESS_TOKEN_URL);
if(accessTokenURL == null)
accessTokenURL = "/accessToken";
logger.info("Request token URL: "+ requestTokenURL);
logger.info("Access token URL: "+ accessTokenURL);