/*******************************************************************************
* Copyright (c) 2010-2014 SAP AG and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* SAP AG - initial API and implementation
*******************************************************************************/
package org.eclipse.skalli.core.destination;
import java.util.Properties;
import org.eclipse.skalli.services.configuration.Protect;
import com.thoughtworks.xstream.annotations.XStreamAlias;
@XStreamAlias("destination")
public class DestinationConfig {
private String id;
private String name;
private String description;
private String contact;
private String type;
private String urlPattern;
private String authentication;
private String user;
@Protect
private String password;
private Properties properties;
// do not remove: required by xstream
public DestinationConfig() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
/**
* @return the name
*/
public String getName() {
return name;
}
/**
* @param name the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* @return the description
*/
public String getDescription() {
return description;
}
/**
* @param description the description to set
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return the contact
*/
public String getContact() {
return contact;
}
/**
* @param contact the contact to set
*/
public void setContact(String contact) {
this.contact = contact;
}
/**
* @return the type
*/
public String getType() {
return type;
}
/**
* @param type the type to set
*/
public void setType(String type) {
this.type = type;
}
/**
* @return the urlPattern
*/
public String getUrlPattern() {
return urlPattern;
}
/**
* @param urlPattern the urlPattern to set
*/
public void setUrlPattern(String urlPattern) {
this.urlPattern = urlPattern;
}
/**
* @return the authentication
*/
public String getAuthentication() {
return authentication;
}
/**
* @param authentication the authentication to set
*/
public void setAuthentication(String authentication) {
this.authentication = authentication;
}
/**
* @return the user
*/
public String getUser() {
return user;
}
/**
* @param user the user to set
*/
public void setUser(String user) {
this.user = user;
}
/**
* @return the password
*/
public String getPassword() {
return password;
}
/**
* @param password the password to set
*/
public void setPassword(String password) {
this.password = password;
}
/**
* @return the properties
*/
public Properties getProperties() {
return properties != null ? properties : new Properties();
}
public String getProperty(String name) {
return getProperties().getProperty(name);
}
}