All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openas2.params.ComponentParameters Maven / Gradle / Ivy

Go to download

Open source implementation of the AS2 standard for signed encrypted and compressed document transfer

There is a newer version: 2.10.1
Show newest version
package org.openas2.params;

import org.openas2.Component;

public class ComponentParameters extends ParameterParser
{
	public static final String KEY_COMPONENT_PARAMETER = "component";
	private Component target;

	public ComponentParameters(Component target) {
		super();
		this.target = target;
	}

    public void setParameter(String key, String value) throws InvalidParameterException {
        throw new InvalidParameterException("Set not supported", this, key, value);
    }

	public String getParameter(String key) throws InvalidParameterException {
		if (key != null) {
			return getTarget().getParameters().get(key);
		} else {
			throw new InvalidParameterException("Invalid area in key", this, key, null);
		}
	}

	public void setTarget(Component component) {
		target = component;
	}

	public Component getTarget() {
		return target;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy