All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rollbar.spring.webmvc.RollbarSpringConfigBuilder Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha.1
Show newest version
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);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy