[jboss-dev-forums] [Design of JBoss ESB] - Re: Consistent handling of HTTP response header across HTTP

dward do-not-reply at jboss.com
Thu Jul 2 02:57:09 EDT 2009


Okay, I have the following working in my local copy, and I can commit it to trunk ASAP if people agree.  I think this is the best approach:

SOAPClient:
- response content added via payloadProxy [EXISTS - UNCHANGED]
- response headers added to message properties [MISSING - ADDED]

Wise SOAPClient:
- response content added via payloadProxy [EXISTS - UNCHANGED]
- response headers added to message properties [MISSING - UNCHANGED (reason is that there is no apparent API availabile in Wise to get out the http response headers)]

routing.HttpRouter:
(ignored since it is deprecated)

routing.http.HttpRouter:
- response content added via payloadProxy [EXISTS - UNCHANGED]
- response headers added to message properties [MISSING - ADDED]
- response headers available in body location HttpResponse.RESPONSE_KEY [EXISTS - UNCHANGED (left for backward compatibility)]

SOAPProxy:
(wraps use of routing.http.HttpRouter so it's all good)

SOAPProcessor:
- response content added via payloadProxy [EXISTS - UNCHANGED]
- response headers added to message properties [EXISTS - UNCHANGED]

HttpGatewayListener->HttpDispatchServlet->HttpMessageComposer
- payloadProxy body written to response output [EXISTS - UNCHANGED]
- message properties added to response headers [MISSING - ADDED]
- response headers available in message property HttpMessageComposer.HTTP_RESPONSE_HEADER_MAP [EXISTS - UNCHANGED (left for backward compatibility)]

JBossRemotingGatewayListener -> JBossRemotingMessageComposer
- payloadProxy body written to response output [EXISTS - UNCHANGED]
- message properties added to response headers [EXISTS - UNCHANGED]

Modified files:
product/rosetta/src/org/jboss/soa/esb/actions/routing/http/HttpRouter.java
product/rosetta/src/org/jboss/soa/esb/listeners/gateway/HttpGatewayListener.java
product/rosetta/src/org/jboss/soa/esb/listeners/gateway/HttpMessageComposer.java
product/rosetta/src/org/jboss/soa/esb/listeners/gateway/JBossRemotingGatewayListener.java
product/rosetta/src/org/jboss/soa/esb/message/ResponseHeader.java
product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/SOAPClient.java
product/services/soap/src/main/java/org/jboss/soa/esb/actions/soap/SOAPProcessor.java
product/services/soap/src/test/java/org/jboss/soa/esb/actions/soap/SOAPClient_Response_UnitTest.java

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241361#4241361

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241361



More information about the jboss-dev-forums mailing list