com.rollbar.spring.webmvc.RollbarSpringConfigBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rollbar-spring6-webmvc Show documentation
Show all versions of rollbar-spring6-webmvc Show documentation
For connecting your applications built on the JVM to Rollbar for Error Reporting
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);
}
}