Previous Topic: nete:default

Next Topic: nete:redirect

nete:forward

The definition of the nete:forward element is:

<!ELEMENT nete:forward (#PCDATA)>

The nete:forward element forwards a request to a specified URL.

Note: The <nete:forward> and </nete:forward> tags must be located on a single line in the proxy rules file. If they are not located on the same line, the SPS interprets line breaks as part of the URL contained in the element. This causes the forward service to fail.

In the following example, the nete:forward element forwards requests while maintaining the URI requested by the user.

<nete:forward>http://home.company.com$0</nete:forward>

If the user’s request satisfies the nete:case parent element’s criteria, that request is forwarded to home.company.com. Therefore, a request for http://server.company.com/hr/benefits/index.html that is forwarded by the previous nete:forward element is fulfilled by forwarding the request to http://home.company.com/hr/benefits/index.html.

If you want to forward a request over SSL, be sure to use https instead of http when defining the destination contained in the <nete:forward> element.

The nete:forward element contains the following attribute:

<!ATTLIST nete:forward filter CDATA #IMPLIED>

This attribute allows you to specify the name of a Java filter class that can be invoked during a forward from the SPS to a destination server. Filters can be written using the Filter API.

More information:

Forward and Redirect Syntax

Filter API Overview