The InboundLocation handler can only send a reply, so it is used in conjunction with other inbound content handlers.
When the SEND command of this content handler is executed the following steps occur:
To create a LANSAWEB procfun query string, include the PROCESS and FUNCTION keywords. If these are present, optional PARTITION and LANGUAGE keywords can be used and the partition will default to the current program partition using the command.getClient().getPartition() method, and the language will be added to the end if available.
The InboundLocation handler returns the following type of HTTP response.
Status: 303 See Other |
Location: url |
Command | Keyword | Value | Developer notes |
|---|---|---|---|
SEND | HANDLER | InboundLocation | |
STATUS | value | Optional: HTTP status number. | |
MESSAGE | value | Optional: HTTP status message. | |
URL | value | Required. URL location. | |
PROCESS | value | Optional. LANSA Web process. | |
FUNCTION | value | Optional. LANSA Web function. | |
PARTITION | value | Optional. LANSA Web partition. Default is the partition of the JSM LANSA client function. | |
LANGUAGE | value | Optional. LANSA Web language. |
SEND HANDLER(InboundLocation) URL(/index.html)
SEND HANDLER(InboundLocation) URL(http://www.acme.com/index.html)
SEND HANDLER(InboundLocation) URL("http://www.acme.com/cgi-bin/jsmdirect?service=order" )
SEND HANDLER(InboundLocation) URL(/cgi-bin/acmeweb) PROCESS(PROC01) FUNCTION(FUNC01)