[
http://jira.jboss.com/jira/browse/JBREM-728?page=comments#action_12389009 ]
Ron Sigal commented on JBREM-728:
---------------------------------
Thomas Diesler has approved the solution.
The new functionality has been added to branch remoting_2_x, and the old functionality has
been preserved. That is, org.jboss.remoting.transport.http.HTTPClientInvoker contintues
to put each response header is put into the metadata map.
Note, also, that org.jboss.remoting.transport.coyote.CoyoteInvoker and
org.jboss.remoting.transport.servlet.ServletServerInvoker transmit any entry in the
InvocationRequest returnPayload map as response headers, so they also end up in the
metadata map.
Unit tests:
http transport: org.jboss.test.remoting.transport.http.headers.ResponseCodeTestCase
servlet transport: org.jboss.test.remoting.transport.servlet.ResponseCodeTestCase
Waiting for cruisecontrol results.
Improve access to HTTP response headers
---------------------------------------
Key: JBREM-728
URL:
http://jira.jboss.com/jira/browse/JBREM-728
Project: JBoss Remoting
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Affects Versions: 2.2.0.Alpha7
Reporter: Thomas Diesler
Assigned To: Ron Sigal
Fix For: 2.4.0.Beta1 (Pinto)
JAXWS needs access to the HTTP response headers
/**
* Standard property: HTTP response headers.
* <p>Type: java.util.Map<java.lang.String,
java.util.List<java.lang.String>>
*/
public static final String HTTP_RESPONSE_HEADERS =
"javax.xml.ws.http.response.headers";
Currently remoting copies these headers to the metadata and I can access them doing a
little guess work like this
// Get the HTTP response headers
Map<String, List> headers = new HashMap<String, List>();
for (Map.Entry en : msgContext.entrySet())
{
if (en.getKey() instanceof String && en.getValue() instanceof List)
headers.put((String)en.getKey(), (List)en.getValue());
}
msgContext.put(MessageContext.HTTP_RESPONSE_HEADERS, headers);
I suggest remoting copies the concept of accessing the headers through a single property
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira