Merge pull request #296 from ayyoob/transport
added profile check before publishing apismerge-requests/7/head
commit
0d524226cd
@ -0,0 +1,57 @@
|
|||||||
|
|
||||||
|
package org.wso2.carbon.apimgt.webapp.publisher.config;
|
||||||
|
|
||||||
|
import javax.xml.bind.annotation.XmlAccessType;
|
||||||
|
import javax.xml.bind.annotation.XmlAccessorType;
|
||||||
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
import javax.xml.bind.annotation.XmlType;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>Java class for Profiles complex type.
|
||||||
|
*
|
||||||
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
||||||
|
*
|
||||||
|
* <pre>
|
||||||
|
* <complexType name="Profiles">
|
||||||
|
* <complexContent>
|
||||||
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
||||||
|
* <sequence>
|
||||||
|
* <element name="Profile" maxOccurs="unbounded" minOccurs="0">
|
||||||
|
* <simpleType>
|
||||||
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
|
||||||
|
* <enumeration value="default"/>
|
||||||
|
* </restriction>
|
||||||
|
* </simpleType>
|
||||||
|
* </element>
|
||||||
|
* </sequence>
|
||||||
|
* </restriction>
|
||||||
|
* </complexContent>
|
||||||
|
* </complexType>
|
||||||
|
* </pre>
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
|
@XmlType(name = "Profiles", propOrder = {
|
||||||
|
"profile"
|
||||||
|
})
|
||||||
|
public class Profiles {
|
||||||
|
|
||||||
|
@XmlElement(name = "Profile")
|
||||||
|
protected List<String> profile;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the value of the profile property.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public List<String> getProfile() {
|
||||||
|
if (profile == null) {
|
||||||
|
profile = new ArrayList<String>();
|
||||||
|
}
|
||||||
|
return this.profile;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue