| URI: | http://www.xmlpipe.org/xpe/sink/http |
| Type: | sink |
| Namespace: | http://www.xml.org/pipe/HTTP |
| Owner: | http://www.xmlpipe.org/xpe |
This sink models a HTTP response. It uses three different methods of seralisation: xml, html, and xhtml.
This mode is activated when the method property of the sink is set to "xml" . In this mode, the sink simply outputs XML as it is.
In this mode, elements not inside the http://www.xml.org/pipe/HTTP namespace will be seralised as it is. HTML elements will be seralised according to the HTML 4.01 standard. The sink will ignore any elements inside the http://www.xml.org/pipe/HTTP namesapce except the following elements:
Note that the name of the element is "header" as opposed to "head" used by the http source. The reason is that the sink is designed to ignore any elements produced by the http source.
If the store attribute is not set or its value is not true, the cookie element will be simply ignored.
The redirect element instructs the sink to send a redirect instruction to its client. If you have more than one redirect element, only the first one is effective. It should appear after any cookie and header elements.
You should only have one error element and it should appear after any cookie and header elements.
Same as the html method except that all html elements will be automatically wrapped inside the XHTML namespace.
| Parameter name | Description | Example |
| method | Generates HTML, XHTML or XML responses |
<xnode type="http://www.xmlpipe.org/xpe/sink/http" xmlns="http://www.xml.org/xml/pipe" > <property name="method" value="xml" /> </xnode> |
| encoding | Encodes the response using the encoding defined |
<xnode type="http://www.xmlpipe.org/xpe/sink/http" xmlns="http://www.xml.org/xml/pipe" > <property name="encoding" value="UTF-8" /> </xnode> |