You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by vicky axis <ax...@yahoo.com> on 2005/07/14 11:44:49 UTC
where are the http header informations?
I want to access the information/properties embedded in the HTTP HEADER of a request. I understand that the information relevant to the request is in the message context, but what i don't know is how to access these details using the message context. I am using axis2 and modules.
Thanks for the help....
---------------------------------
Start your day with Yahoo! - make it your home page
Re: where are the http header informations?
Posted by Srinath Perera <he...@gmail.com>.
We need method like .. getTransportInContext() ..ect .. Can u add a
JIRA at http://issues.apache.org/jira/browse/AXIS2. I will fix it
Thanks
Srinath
p.s. Put [Axis2] prefix to the subject of the messages related to Axis2
On 7/14/05, vicky axis <ax...@yahoo.com> wrote:
> Sorry for being so naive, but axis2 API does not show anything like
> getCurrentContext() under MessageContext. I am looking for a way to access
> http header information in AXIS2...
>
>
> John Baker <jb...@sasami.atomised.org> wrote:
>
> private HttpServletRequest getRequest()
> {
> MessageContext context =
> MessageContext.getCurrentContext();
> return
> (HttpServletRequest)context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
> }
>
>
>
> On Thu, Jul 14, 2005 at 02:44:49AM -0700, vicky axis wrote:
> > I want to access the information/properties embedded in the HTTP HEADER of
> a request. I understand that the information relevant to the request is in
> the message context, but what i don't know is how to access these details
> using the message context. I am using axis2 and modules.
> > Thanks for the help....
> >
> >
> > ---------------------------------
> > Start your day with Yahoo! - make it your home page
>
>
> ________________________________
> Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search. Learn more.
>
>
Re: where are the http header informations?
Posted by John Baker <jb...@sasami.atomised.org>.
No idea with Axis2, but let me know when you find out :)
On Thu, Jul 14, 2005 at 05:10:30AM -0700, vicky axis wrote:
> Sorry for being so naive, but axis2 API does not show anything like getCurrentContext() under MessageContext. I am looking for a way to access http header information in AXIS2...
>
> John Baker <jb...@sasami.atomised.org> wrote:
> private HttpServletRequest getRequest()
> {
> MessageContext context = MessageContext.getCurrentContext();
> return (HttpServletRequest)context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
> }
>
>
>
> On Thu, Jul 14, 2005 at 02:44:49AM -0700, vicky axis wrote:
> > I want to access the information/properties embedded in the HTTP HEADER of a request. I understand that the information relevant to the request is in the message context, but what i don't know is how to access these details using the message context. I am using axis2 and modules.
> > Thanks for the help....
> >
> >
> > ---------------------------------
> > Start your day with Yahoo! - make it your home page
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Re: where are the http header informations?
Posted by vicky axis <ax...@yahoo.com>.
Sorry for being so naive, but axis2 API does not show anything like getCurrentContext() under MessageContext. I am looking for a way to access http header information in AXIS2...
John Baker <jb...@sasami.atomised.org> wrote:
private HttpServletRequest getRequest()
{
MessageContext context = MessageContext.getCurrentContext();
return (HttpServletRequest)context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
}
On Thu, Jul 14, 2005 at 02:44:49AM -0700, vicky axis wrote:
> I want to access the information/properties embedded in the HTTP HEADER of a request. I understand that the information relevant to the request is in the message context, but what i don't know is how to access these details using the message context. I am using axis2 and modules.
> Thanks for the help....
>
>
> ---------------------------------
> Start your day with Yahoo! - make it your home page
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search. Learn more.
Re: where are the http header informations?
Posted by John Baker <jb...@sasami.atomised.org>.
private HttpServletRequest getRequest()
{
MessageContext context = MessageContext.getCurrentContext();
return (HttpServletRequest)context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
}
On Thu, Jul 14, 2005 at 02:44:49AM -0700, vicky axis wrote:
> I want to access the information/properties embedded in the HTTP HEADER of a request. I understand that the information relevant to the request is in the message context, but what i don't know is how to access these details using the message context. I am using axis2 and modules.
> Thanks for the help....
>
>
> ---------------------------------
> Start your day with Yahoo! - make it your home page
Re: where are the http header informations?
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi ;
In the current implementation we only parse them and forget it and we are not going to add them in messageContext , so if you have requirement of accessing them latter in the execution chain please create a JIRA issue so that in the next release you can have the feature.
(I am talking abt axis2 .9 release)
Thanks
Deepal
----- Original Message -----
From: vicky axis
To: axis-user@ws.apache.org
Sent: Thursday, July 14, 2005 3:44 PM
Subject: where are the http header informations?
I want to access the information/properties embedded in the HTTP HEADER of a request. I understand that the information relevant to the request is in the message context, but what i don't know is how to access these details using the message context. I am using axis2 and modules.
Thanks for the help....
------------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page