com.rollbar.spring.webmvc.RollbarSpringConfigBuilder Maven / Gradle / Ivy
package com.rollbar.spring.webmvc;
import com.rollbar.notifier.config.ConfigBuilder;
import com.rollbar.notifier.provider.server.ServerProvider;
import com.rollbar.web.provider.RequestProvider;
public class RollbarSpringConfigBuilder extends ConfigBuilder {
protected RollbarSpringConfigBuilder(String accessToken) {
super(accessToken);
this.request = new RequestProvider.Builder().build();
this.server = new ServerProvider();
this.framework = "spring";
}
/**
* Helper to provide a Config Builder for Java Spring with access token.
*/
public static ConfigBuilder withAccessToken(String accessToken) {
return new RollbarSpringConfigBuilder(accessToken);
}
}