
org.openas2.params.ComponentParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
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