io.descoped.dc.api.Builders Maven / Gradle / Ivy
The newest version!
package io.descoped.dc.api;
import io.descoped.dc.api.node.builder.AddContentBuilder;
import io.descoped.dc.api.node.builder.BodyBuilder;
import io.descoped.dc.api.node.builder.BodyContainsBuilder;
import io.descoped.dc.api.node.builder.BodyPublisherBuilder;
import io.descoped.dc.api.node.builder.ConsoleBuilder;
import io.descoped.dc.api.node.builder.DeleteBuilder;
import io.descoped.dc.api.node.builder.EvalBuilder;
import io.descoped.dc.api.node.builder.ExecuteBuilder;
import io.descoped.dc.api.node.builder.ForEachBuilder;
import io.descoped.dc.api.node.builder.GetBuilder;
import io.descoped.dc.api.node.builder.HttpStatusRetryWhileBuilder;
import io.descoped.dc.api.node.builder.HttpStatusValidationBuilder;
import io.descoped.dc.api.node.builder.JqPathBuilder;
import io.descoped.dc.api.node.builder.JsonTokenBuilder;
import io.descoped.dc.api.node.builder.JwtClaims;
import io.descoped.dc.api.node.builder.JwtHeaderClaims;
import io.descoped.dc.api.node.builder.JwtIdentityBuilder;
import io.descoped.dc.api.node.builder.JwtIdentityTokenBodyPublisherProducerBuilder;
import io.descoped.dc.api.node.builder.NextPageBuilder;
import io.descoped.dc.api.node.builder.PaginateBuilder;
import io.descoped.dc.api.node.builder.ParallelBuilder;
import io.descoped.dc.api.node.builder.PostBuilder;
import io.descoped.dc.api.node.builder.ProcessBuilder;
import io.descoped.dc.api.node.builder.PublishBuilder;
import io.descoped.dc.api.node.builder.PutBuilder;
import io.descoped.dc.api.node.builder.QueryBuilder;
import io.descoped.dc.api.node.builder.RegExBuilder;
import io.descoped.dc.api.node.builder.SecurityBuilder;
import io.descoped.dc.api.node.builder.SequenceBuilder;
import io.descoped.dc.api.node.builder.SpecificationContextBuilder;
import io.descoped.dc.api.node.builder.WhenExpressionIsTrueBuilder;
import io.descoped.dc.api.node.builder.WhenVariableIsNullBuilder;
import io.descoped.dc.api.node.builder.XPathBuilder;
public class Builders {
public static SpecificationContextBuilder context() {
return new SpecificationContextBuilder();
}
public static SecurityBuilder security() {
return new SecurityBuilder();
}
public static JwtIdentityBuilder jwt(String id, JwtHeaderClaims headerClaims, JwtClaims claims) {
return new JwtIdentityBuilder(id, headerClaims, claims);
}
public static JwtIdentityTokenBodyPublisherProducerBuilder jwtToken() {
return new JwtIdentityTokenBodyPublisherProducerBuilder();
}
public static JwtHeaderClaims headerClaims() {
return new JwtHeaderClaims();
}
public static JwtClaims claims() {
return new JwtClaims();
}
public static GetBuilder get(String functionId) {
return new GetBuilder(functionId);
}
public static PostBuilder post(String functionId) {
return new PostBuilder(functionId);
}
public static PutBuilder put(String functionId) {
return new PutBuilder(functionId);
}
public static DeleteBuilder delete(String functionId) {
return new DeleteBuilder(functionId);
}
public static HttpStatusRetryWhileBuilder statusCode() {
return new HttpStatusRetryWhileBuilder();
}
public static HttpStatusValidationBuilder status() {
return new HttpStatusValidationBuilder();
}
public static BodyPublisherBuilder bodyPublisher() {
return new BodyPublisherBuilder();
}
public static BodyContainsBuilder bodyContains(QueryBuilder queryBuilder, String equalToStringLiteral) {
return new BodyContainsBuilder(queryBuilder, equalToStringLiteral);
}
public static PaginateBuilder paginate(String function) {
return new PaginateBuilder(function);
}
/**
* A sequence determines expected-positions from remote api
*
* @param builder
* @return
*/
public static SequenceBuilder sequence(QueryBuilder builder) {
return new SequenceBuilder(builder);
}
public static NextPageBuilder nextPage() {
return new NextPageBuilder();
}
public static ParallelBuilder parallel(QueryBuilder builder) {
return new ParallelBuilder(builder);
}
public static ForEachBuilder forEach(QueryBuilder builder) {
return new ForEachBuilder(builder);
}
public static ExecuteBuilder execute(String function) {
return new ExecuteBuilder(function);
}
public static ProcessBuilder process(Class extends Processor> processorClass) {
return new ProcessBuilder(processorClass);
}
public static AddContentBuilder addContent(String positionVariable, String contentKey) {
return new AddContentBuilder(positionVariable, contentKey);
}
public static PublishBuilder publish(String positionVariable) {
return new PublishBuilder(positionVariable);
}
public static BodyBuilder body() {
return new BodyBuilder();
}
public static EvalBuilder eval(String elExpression) {
return new EvalBuilder(elExpression);
}
public static EvalBuilder eval(QueryBuilder queryBuilder, String bindTo, String elExpression) {
return new EvalBuilder(queryBuilder, bindTo, elExpression);
}
public static XPathBuilder xpath(String expression) {
return new XPathBuilder(expression);
}
public static JsonTokenBuilder jsonToken() {
return new JsonTokenBuilder();
}
public static JqPathBuilder jqpath(String expression) {
return new JqPathBuilder(expression);
}
public static RegExBuilder regex(QueryBuilder queryBuilder, String expression) {
return new RegExBuilder(queryBuilder, expression);
}
public static WhenVariableIsNullBuilder whenVariableIsNull(String identifier) {
return new WhenVariableIsNullBuilder().identifier(identifier);
}
public static WhenExpressionIsTrueBuilder whenExpressionIsTrue(String expression) {
return new WhenExpressionIsTrueBuilder().identifier(expression);
}
public static ConsoleBuilder console() {
return new ConsoleBuilder();
}
}