
com.aerospike.connect.outbound.esp.EspOutboundMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aerospike-connect-outbound-sdk Show documentation
Show all versions of aerospike-connect-outbound-sdk Show documentation
Outbound connector SDK for change notification transformers.
The newest version!
/*
*
* Copyright 2012-2022 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more contributor
* license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package com.aerospike.connect.outbound.esp;
import com.aerospike.connect.outbound.format.OutboundMetadata;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;
import lombok.ToString;
import javax.annotation.Nullable;
import java.net.URI;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
/**
* The metadata associated with the ESP (Event Stream Processing) outbound
* record.
*/
@AllArgsConstructor
@EqualsAndHashCode
@Getter
@ToString
public class EspOutboundMetadata implements OutboundMetadata {
/**
* @return The method of the HTTP request.
*/
@NonNull
private final HttpMethod httpMethod;
/**
* The set of HTTP status codes indicating a successful response. If it is
* not specified then the status codes specified in the ESP destination
* config are used.
*/
@Nullable
private final Set successStatusCodes;
/**
* The path component of the relative URL resolved against the base URL (ESP
* destination URL) to get the target URL. See {@link
* java.net.URI#resolve(URI)} and
* examples.
*
*
* Should be in non percent-encoded, plain human-readable form.
*/
@Nullable
private final String path;
/**
* The query component of the relative URL resolved against the base URL
* (ESP destination URL) to get the target URL. See {@link
* java.net.URI#resolve(URI)} and
* examples.
*
*
* Should be in non percent-encoded, plain human-readable form.
*/
@Nullable
private final String query;
/**
* The headers of the HTTP request.
*/
@Nullable
private final Map headers;
/**
* Get the headers of the HTTP request.
*
* @return the HTTP headers.
*/
public Optional
© 2015 - 2025 Weber Informatics LLC | Privacy Policy