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

fr.sii.ogham.sms.builder.cloudhopper.LoggingBuilder Maven / Gradle / Ivy

The newest version!
package fr.sii.ogham.sms.builder.cloudhopper;

import com.cloudhopper.smpp.pdu.Pdu;
import com.cloudhopper.smpp.type.LoggingOptions;

import fr.sii.ogham.core.builder.Builder;
import fr.sii.ogham.core.fluent.AbstractParent;

/**
 * * Configure logs:
 * 
    *
  • Enable/disable log of {@link Pdu}s
  • *
  • Enable/disable log of bytes
  • *
* * @author Aurélien Baudet * */ public class LoggingBuilder extends AbstractParent implements Builder { private LoggingOptions options; /** * Initializes the builder with a parent builder. The parent builder is used * when calling {@link #and()} method. * * @param parent * the parent builder */ public LoggingBuilder(CloudhopperBuilder parent) { super(parent); } /** * Provide a {@link LoggingOptions} instance to: *
    *
  • Enable/disable log of {@link Pdu}s
  • *
  • Enable/disable log of bytes
  • *
* * If this method is called several times, only the last instance is used. * * @param options * the logging options * @return this instance for fluent chaining */ public LoggingBuilder options(LoggingOptions options) { this.options = options; return this; } @Override public LoggingOptions build() { return options; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy