net.optionfactory.spring.upstream.faults.spooler.FaultBodiesFunctions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of upstream-email-faults Show documentation
Show all versions of upstream-email-faults Show documentation
optionfactory-spring REST upstream core project
package net.optionfactory.spring.upstream.faults.spooler;
import net.optionfactory.spring.upstream.contexts.ResponseContext.BodySource;
import net.optionfactory.spring.upstream.rendering.BodyRendering;
public class FaultBodiesFunctions {
public String abbreviated(byte[] in, int maxSize) {
return BodyRendering.abbreviated(BodySource.of(in), "✂️", maxSize);
}
public String abbreviated(BodySource in, int maxSize) {
return BodyRendering.abbreviated(in, "✂️", maxSize);
}
}