org.opensearch.migrations.transform.IAuthTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trafficReplayer Show documentation
Show all versions of trafficReplayer Show documentation
Everything opensearch migrations
The newest version!
package org.opensearch.migrations.transform;
import java.nio.ByteBuffer;
import org.opensearch.migrations.replay.datahandlers.http.HttpJsonRequestWithFaultingPayload;
public interface IAuthTransformer {
enum ContextForAuthHeader {
HEADERS,
HEADERS_AND_CONTENT_PAYLOAD
}
ContextForAuthHeader transformType();
abstract class HeadersOnlyTransformer implements IAuthTransformer {
@Override
public ContextForAuthHeader transformType() {
return ContextForAuthHeader.HEADERS;
}
public abstract void rewriteHeaders(HttpJsonRequestWithFaultingPayload msg);
}
abstract class StreamingFullMessageTransformer implements IAuthTransformer {
@Override
public ContextForAuthHeader transformType() {
return ContextForAuthHeader.HEADERS_AND_CONTENT_PAYLOAD;
}
public abstract void consumeNextPayloadPart(ByteBuffer contentChunk);
public abstract void finalizeSignature(HttpJsonRequestWithFaultingPayload msg);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy