org.springframework.integration.gateway.GatewayMethodMetadata.java Source code

Java tutorial

Introduction

Here is the source code for org.springframework.integration.gateway.GatewayMethodMetadata.java

Source

/*
 * Copyright 2002-2019 the original author or authors.
 *
 * 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
 *
 *      https://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 org.springframework.integration.gateway;

import java.util.HashMap;
import java.util.Map;

import org.springframework.expression.Expression;

/**
 * Represents the metadata associated with a Gateway method. This is most useful when there are
 * multiple methods per Gateway interface.
 * <p>
 * The sub-element of a &lt;gateway&gt; element would look like this:
 * &lt;method name="echo" request-channel="inputA" reply-timeout="2" request-timeout="200"/&gt;
 *
 * @author Oleg Zhurakousky
 * @author Gary Russell
 * @since 2.0
 */
public class GatewayMethodMetadata {

    private volatile String payloadExpression;

    private volatile String requestChannelName;

    private volatile String replyChannelName;

    private volatile String requestTimeout;

    private volatile String replyTimeout;

    private volatile Map<String, Expression> headerExpressions = new HashMap<String, Expression>();

    public String getPayloadExpression() {
        return this.payloadExpression;
    }

    public void setPayloadExpression(String payloadExpression) {
        this.payloadExpression = payloadExpression;
    }

    public Map<String, Expression> getHeaderExpressions() {
        return this.headerExpressions;
    }

    public void setHeaderExpressions(Map<String, Expression> headerExpressions) {
        this.headerExpressions = headerExpressions;
    }

    public String getRequestChannelName() {
        return this.requestChannelName;
    }

    public void setRequestChannelName(String requestChannelName) {
        this.requestChannelName = requestChannelName;
    }

    public String getReplyChannelName() {
        return this.replyChannelName;
    }

    public void setReplyChannelName(String replyChannelName) {
        this.replyChannelName = replyChannelName;
    }

    public String getRequestTimeout() {
        return this.requestTimeout;
    }

    public void setRequestTimeout(String requestTimeout) {
        this.requestTimeout = requestTimeout;
    }

    public String getReplyTimeout() {
        return this.replyTimeout;
    }

    public void setReplyTimeout(String replyTimeout) {
        this.replyTimeout = replyTimeout;
    }

}