You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Suran Jayathilaka (JIRA)" <ji...@apache.org> on 2007/08/30 08:32:30 UTC

[jira] Updated: (AXIS2-2746) PORT and SESSIONID property in the current message context

     [ https://issues.apache.org/jira/browse/AXIS2-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suran Jayathilaka updated AXIS2-2746:
-------------------------------------

    Attachment: AXIS2-2746.patch

Adds 2 fields to HTTPConstants (REMOTE_PORT & SESSION_ID). Adds code to set properties REMOTE_PORT & SESSION_ID to message context in AxisServlet.
This patch also contains the typo fix for JIRA AXIS2-3125.
Pls apply in modules/kernel directory.


> PORT and SESSIONID property in the current message context
> ----------------------------------------------------------
>
>                 Key: AXIS2-2746
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2746
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 1.2
>            Reporter: Gul Onural
>            Assignee: Deepal Jayasinghe
>         Attachments: AXIS2-2746.patch
>
>
> HttpServletRequest's  getRequestURL method returns client's URL which has a protocol, server name, port number, and server path.
> You can use that method to add a PORT property to Axis2 current message context.
> Also another property SESSION_ID can be put into the Axis2' current message context by calling HttpServletRequest's getSession method which returns HttpSession and it has a method called getId which returns string containing the unique identifier assigned to this session.
> Gul
> -----Original Message-----
> From: Davanum Srinivas [mailto:davanum@gmail.com]
> Sent: Thursday, May 31, 2007 2:50 PM
> To: Onural, Gul (CAR:QT00)
> Cc: axis-user@ws.apache.org
> Subject: Re: Retrieving caller's port number from current message context
> Gul,
> we call the HttpServletRequest's getRemoteAddr and stick it into REMOTE_ADDRESS. if you can log a jira with some code to get the port from HttpServletRequest's. we'd certainly entertain a enhancement request.
> thanks,
> dims
> On 5/31/07, Gul Onural <on...@nortel.com> wrote:
> >
> > A standard HTTP request has the port number and IPAddress. Would it be 
> > possible for Axis2 to retrieve  the port number and stick it into the 
> > message context ?
> >
> > Gul
> >
> > -----Original Message-----
> > From: Davanum Srinivas [mailto:davanum@gmail.com]
> > Sent: Thursday, May 31, 2007 2:18 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: Retrieving caller's port number from current message 
> > context
> >
> > Nope. AFAIK. Is it available in a typical servlet?
> >
> > thanks,
> > dims
> >
> > On 5/31/07, Gul Onural <on...@nortel.com> wrote:
> > >
> > >
> > > I know how to retrieve caller's IP Address from the message context 
> > > in
> >
> > > Axis2 (via property keyed by MessageContext.REMOTE_ADDR).
> > > Is there a similar way of retrieving caller's port number from the 
> > > current message context ?
> > >
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas :: http://davanum.wordpress.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> --
> Davanum Srinivas :: http://davanum.wordpress.com

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org