It looks like I was able to find out :
| public class RequestHeaderClientHandler extends GenericHandler
| {
|
| public void init(HandlerInfo info)
| {
| }
|
| public QName[] getHeaders()
| {
| return null;
| }
|
| public boolean handleRequest(MessageContext msgContext)
| {
| SOAPMessageContext smc = (SOAPMessageContext)msgContext;
| SOAPMessage message = smc.getMessage();
| MimeHeaders mimeHeaders = message.getMimeHeaders();
| mimeHeaders.setHeader("Cookie",
"myrequestcookie:myrequestcookievalue");
| return super.handleRequest(msgContext);
| }
|
| public boolean handleResponse(MessageContext msgContext)
| {
| SOAPMessageContext smc = (SOAPMessageContext)msgContext;
| SOAPMessage message = smc.getMessage();
| MimeHeaders mimeHeaders = message.getMimeHeaders();
| for (Iterator i = mimeHeaders.getAllHeaders();i.hasNext();)
| {
| MimeHeader header = (MimeHeader)i.next();
| if (header.getName().equals("Set-Cookie"))
| {
| System.out.println("Response cookie " + header.getValue());
| }
| }
| return super.handleResponse(msgContext);
| }
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3945942#3945942
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3945942
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user