XML schema of the proxy-config.xml file
A proxy-config.xml file needs to conform to the following XML schema.
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:proxy="http://www.ibm.com/xmlns/prod/sw/ajax/proxy-config/1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ibm.com/xmlns/prod/sw/ajax/proxy-config/1.1" elementFormDefault="qualified"> <xs:element name="proxy-rules"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="proxy:mapping" maxOccurs="unbounded"/> <xs:element ref="proxy:policy" minOccurs="0" maxOccurs="unbounded"/> <xs:element ref="proxy:ipfilter" minOccurs="0" maxOccurs="unbounded"/> <xs:element ref="proxy:meta-data" minOccurs="0" maxOccurs="unbounded"/> </xs:choice> </xs:complexType> </xs:element> <xs:element name="mapping"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="proxy:policy" minOccurs="0" maxOccurs="unbounded"/> <xs:element ref="proxy:ipfilter" minOccurs="0" maxOccurs="unbounded"/> <xs:element ref="proxy:meta-data" minOccurs="0" maxOccurs="unbounded"/> </xs:choice> <xs:attribute name="contextpath" type="xs:string" use="required"/> <xs:attribute name="url" use="optional"> <xs:simpleType> <xs:restriction base="xs:anyURI"/> </xs:simpleType> </xs:attribute> </xs:complexType> </xs:element> <xs:element name="policy"> <xs:complexType> <xs:sequence> <xs:element ref="proxy:actions"/> <xs:element ref="proxy:headers" minOccurs="0"/> <xs:element ref="proxy:mime-types" minOccurs="0"/> <xs:element ref="proxy:cookies" minOccurs="0"/> <xs:element ref="proxy:users" minOccurs="0"/> </xs:sequence> <xs:attribute name="url" use="required"> <xs:simpleType> <xs:restriction base="xs:anyURI"/> </xs:simpleType> </xs:attribute> <xs:attribute name="acf" use="optional" default="none"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="none"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="basic-auth-support" type="xs:boolean" use="optional" default="false"/> </xs:complexType> </xs:element> <xs:element name="ipfilter"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element ref="proxy:allow"/> <xs:element ref="proxy:deny"/> </xs:choice> </xs:complexType> </xs:element> <xs:element name="deny" type="xs:string"/> <xs:element name="allow" type="xs:string"/> <xs:element name="actions"> <xs:complexType> <xs:sequence> <xs:element ref="proxy:method" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="method"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="GET"/> <xs:enumeration value="POST"/> <xs:enumeration value="PUT"/> <xs:enumeration value="HEAD"/> <xs:enumeration value="DELETE"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element name="headers"> <xs:complexType> <xs:sequence> <xs:element ref="proxy:header" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="header" type="xs:string"/> <xs:element name="mime-types"> <xs:complexType> <xs:sequence> <xs:element ref="proxy:mime-type" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="mime-type" type="xs:string"/> <xs:element name="cookies"> <xs:complexType> <xs:sequence> <xs:element ref="proxy:cookie" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="cookie" type="xs:string"/> <xs:element name="users"> <xs:complexType> <xs:sequence> <xs:element ref="proxy:user" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="user" type="xs:string"/> <xs:element name="meta-data"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="value" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
Parent
HTTP proxy for AJAX applications