/*
 * Copyright 2005-2007 WSO2, Inc. (http://wso2.com)
 *
 * 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 org.wso2.micro.core.transports.util;

import org.wso2.micro.integrator.core.util.MicroIntegratorBaseUtils;

/**
 *
 */
public class TransportDetails {
    private TransportParameter[] inParameters;
    private TransportParameter[] outParameters;
    private boolean isListenerActive;
    private boolean isSenderActive;

    public TransportDetails() {
        inParameters = null;
        outParameters = null;
    }

    public TransportParameter[] getInParameters() {
        return MicroIntegratorBaseUtils.arrayCopyOf(inParameters);
    }

    public void setInParameters(TransportParameter[] parameters) {
        this.inParameters = MicroIntegratorBaseUtils.arrayCopyOf(parameters);
    }

    public TransportParameter[] getOutParameters() {
        return MicroIntegratorBaseUtils.arrayCopyOf(outParameters);
    }

    public void setOutParameters(TransportParameter[] parameters) {
        this.outParameters = MicroIntegratorBaseUtils.arrayCopyOf(parameters);
    }

    public boolean isListenerActive() {
        return isListenerActive;
    }

    public void setListenerActive(boolean listenerActive) {
        isListenerActive = listenerActive;
    }

    public boolean isSenderActive() {
        return isSenderActive;
    }

    public void setSenderActive(boolean senderActive) {
        isSenderActive = senderActive;
    }
}
