From 6aa2a053901ed3e36333fd22e3f0a05884d7791a Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Thu, 16 Dec 2010 17:17:38 -0500 Subject: [PATCH] added a bit more detail to the HTTP header mapping documentation --- docs/src/reference/docbook/http.xml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/docs/src/reference/docbook/http.xml b/docs/src/reference/docbook/http.xml index 597953b0b9..ac6f270a9b 100644 --- a/docs/src/reference/docbook/http.xml +++ b/docs/src/reference/docbook/http.xml @@ -181,29 +181,32 @@ By default the HTTP request will be generated using an instance of Si By default all standard Http Headers as defined here - http://en.wikipedia.org/wiki/List_of_HTTP_header_fields will be mapped from the message to http request/response headers without + http://en.wikipedia.org/wiki/List_of_HTTP_header_fields will be mapped from the message to HTTP request/response headers without further configuration. - However if you do need further customization you may provide an additional configuration via convenient namesapce support. - Below are couple of examples: + However if you do need further customization you may provide additional configuration via convenient namespace support. + You can provide a comma-separated list of header names, and you can also include simple patterns with the '*' character acting as a wildcard. + If you do provide such values, it will override the default behavior. Basically, it assumes you are in complete control at that point. + However, if you do want to include all of the standard HTTP headers, you can use the shortcut patterns: HTTP_REQUEST_HEADERS and + HTTP_RESPONSE_HEADERS. Here are some examples: ]]> The adapters and gateways will use the DefaultHttpHeaderMapper which now provides two static factory methods for "inbound" and "outbound" adapters so that the proper direction can be - applied (mapping HTTP requests/reponses IN/OUT as appropriate). + applied (mapping HTTP requests/responses IN/OUT as appropriate). - If further customization is required you can also configure DefaultHttpHeaderMapper independently - and inject it into the adapter via header-mapper attribute. + If further customization is required you can also configure a DefaultHttpHeaderMapper independently + and inject it into the adapter via the header-mapper attribute. Si channel="someChannel"/> - - + + ]]> + Of course, you can even implement the HeaderMapper strategy interface directly and provide a reference to that + if you need to do something other than what the DefaultHttpHeaderMapper supports.