Allowed Header in the integration flow in Runtime Configurations
SapAuthenticatedUserName - To identify the Username that calls the integration flow
Note: If the sender channel is configured to use client certificate authentication, no such header is set (as it is not available in this case). Only for User Role it can be used.
CamelHttpUrl - Refers to the complete URL called, without query parameters
For Example: CamelHttpUrl:https://XXXX-iflmap.hcisbp.XXX.hana.ondemand.com/http/dev/SF/c4c/fileupload
CamelHttpQuery - Refers to the query string that is contained in the request URL.
CamelHttpMethod - Refers to the incoming method names used to make the request. These methods are GET, POST, PUT, DELETE, and so on.
For Example: CamelHttpMethod:POST
CamelServletContextPath - Refers to the path specified in the address field of the channel.
For Example: CamelServletContextPath:/dev/SF/c4c/fileupload
Script used to read the header values:
def headers = message.getHeaders()
def userName = headers.get("SapAuthenticatedUserName")
Result of the above script:
SapAuthenticatedUserName:S0020XXXXXXX (in header)
------------------------------------------------------------------------------------
Cheers!!!
No comments:
Post a Comment