[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-ajax-user
Subject:    Re: [User] getting client IP
From:       "Jorge Infante Osorio" <jorgeio () uci ! cu>
Date:       2012-05-04 20:54:04
Message-ID: !&!AAAAAAAAAAAYAAAAAAAAADEDMahRnnVKvgclMiDfrb3CgAAAEAAAALqBSQ6AbEdDknmzzpS6Q7YBAAAAAA== () uci ! cu
[Download RAW message or body]

This is a multipart message in MIME format.

[Attachment #2 (multipart/alternative)]
This is a multipart message in MIME format.


Thanks Kasun. 

 

Saludos,

Ing. Jorge Infante Osorio.

J´Dpto Soluciones SOA.

CDAE.

Fac. 5.

UCI.

 

De: Kasun Weranga [mailto:kasunw@wso2.com] 
Enviado el: miércoles, 02 de mayo de 2012 14:04
Para: Jorge Infante Osorio
CC: user@wso2.org
Asunto: Re: [User] getting client IP

 

Hi Jorge,

 

You can obtain the client IP by getting HttpServletRequest object within an
axis2 handler. That is how we get the client IP in our BAM data agents. Hope
this will be helpful [1]. 

 

Thanks,

KasunW

 

[1]
https://svn.wso2.org/repos/wso2/branches/wso2bam-2.0.0-ALPHA2/3.2.0/componen
ts/data-agents/org.wso2.carbon.bam.service.data.publisher/3.2.4/src/main/jav
a/org/wso2/carbon/bam/service/data/publisher/modules/StatisticsHandler.java

 

2012/4/25 Jorge Infante Osorio <jorgeio@uci.cu>

Hi all.

 

how to get the IP or host name from where a client consumes a service?

 

Saludos,

Ing. Jorge Infante Osorio.

J´Dpto Soluciones SOA.

CDAE.

Fac. 5.

UCI.

 

 

 <http://www.uci.cu/> 

 <http://www.uci.cu/>  

 <http://www.uci.cu/> 
_______________________________________________
User mailing list
User@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/user

 <http://www.uci.cu/> 



 <http://www.uci.cu/>  

 <http://www.uci.cu/> -- 
Kasun Weranga

 <http://www.uci.cu/> Software Engineer

 <http://www.uci.cu/> WSO2, Inc.
lean.enterprise.middleware.

 <http://www.uci.cu/> mobile : +94 772314602

 <http://www.uci.cu/> blog :http://kasunweranga.blogspot.com/



10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION

http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci


[Attachment #5 (text/html)]

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta name=Generator content="Microsoft \
Word 14 (filtered medium)"><style><!-- /* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Georgia;
	panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EstiloCorreo17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks \
Kasun. <o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span lang=ES-TRAD \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Saludos,<o:p></o:p></span></p><p \
class=MsoNormal><span lang=ES-TRAD \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Ing. Jorge \
Infante Osorio.<o:p></o:p></span></p><p class=MsoNormal><span lang=ES-TRAD \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>J´Dpto \
Soluciones SOA.<o:p></o:p></span></p><p class=MsoNormal><span lang=ES-TRAD \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>CDAE.<o:p></o:p></span></p><p \
class=MsoNormal><span lang=ES-TRAD \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Fac. \
5.<o:p></o:p></span></p><p class=MsoNormal><span lang=ES-TRAD \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>UCI.<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Kasun Weranga \
[mailto:kasunw@wso2.com] <br><b>Enviado el:</b> miércoles, 02 de mayo de 2012 \
14:04<br><b>Para:</b> Jorge Infante Osorio<br><b>CC:</b> \
user@wso2.org<br><b>Asunto:</b> Re: [User] getting client IP<o:p></o:p></span></p><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>Hi \
Jorge,<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p \
class=MsoNormal>You can obtain the client IP by getting HttpServletRequest object \
within an axis2 handler. That is how we get the client IP in our BAM data \
agents.&nbsp;Hope this will be helpful [1].&nbsp;<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p \
class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p \
class=MsoNormal>KasunW<o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>[1]&nbsp;&nbsp;<a \
href="https://svn.wso2.org/repos/wso2/branches/wso2bam-2.0.0-ALPHA2/3.2.0/components/d \
ata-agents/org.wso2.carbon.bam.service.data.publisher/3.2.4/src/main/java/org/wso2/car \
bon/bam/service/data/publisher/modules/StatisticsHandler.java">https://svn.wso2.org/re \
pos/wso2/branches/wso2bam-2.0.0-ALPHA2/3.2.0/components/data-agents/org.wso2.carbon.ba \
m.service.data.publisher/3.2.4/src/main/java/org/wso2/carbon/bam/service/data/publisher/modules/StatisticsHandler.java</a><o:p></o:p></p></div><div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal>2012/4/25 Jorge Infante \
Osorio &lt;<a href="mailto:jorgeio@uci.cu" \
target="_blank">jorgeio@uci.cu</a>&gt;<o:p></o:p></p><div><div><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN-US>Hi \
all.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US>&nbsp;</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=EN>how to get \
the IP or host name from where a client consumes a service?</span><o:p></o:p></p><p \
class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=EN-US>&nbsp;</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=ES-TRAD>Saludos,</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=ES-TRAD>Ing. \
Jorge Infante Osorio.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=ES-TRAD>J´Dpto \
Soluciones SOA.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=ES-TRAD>CDAE.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span lang=ES-TRAD>Fac. \
5.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span \
lang=ES-TRAD>UCI.</span><o:p></o:p></p><p class=MsoNormal \
style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p></o:p></p></div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><a \
href="http://www.uci.cu/" target="_blank"><span \
style='color:windowtext;text-decoration:none'><o:p></o:p></span></a></p></div><p \
class=MsoNormal><a href="http://www.uci.cu/" target="_blank"><span \
style='color:windowtext;text-decoration:none'><o:p>&nbsp;</o:p></span></a></p></div><p \
class=MsoNormal style='margin-bottom:12.0pt'><a href="http://www.uci.cu/" \
target="_blank"><span \
style='color:windowtext;text-decoration:none'><br>_______________________________________________<br>User \
mailing list<br><u><span style='color:blue'>User@wso2.org</span></u><br><u><span \
style='color:blue'>http://wso2.org/cgi-bin/mailman/listinfo/user</span></u><o:p></o:p></span></a></p></div><p \
class=MsoNormal><a href="http://www.uci.cu/" target="_blank"><span \
style='color:windowtext;text-decoration:none'><br><br \
clear=all><o:p></o:p></span></a></p><div><p class=MsoNormal><a \
href="http://www.uci.cu/" target="_blank"><span \
style='color:windowtext;text-decoration:none'><o:p>&nbsp;</o:p></span></a></p></div><p \
class=MsoNormal><a href="http://www.uci.cu/" target="_blank"><span \
style='color:windowtext;text-decoration:none'>-- <br></span><b><span \
style='font-size:10.0pt;font-family:"Georgia","serif";color:black;text-decoration:none'>Kasun \
Weranga</span></b><span \
style='color:windowtext;text-decoration:none'><o:p></o:p></span></a></p><div><p \
class=MsoNormal><span style='font-family:"Georgia","serif";color:black'><a \
href="http://www.uci.cu/" target="_blank"><span \
style='color:black;text-decoration:none'>Software Engineer</span><span \
style='font-family:"Times New \
Roman","serif";color:#888888;text-decoration:none'><o:p></o:p></span></a></span></p></div><div><p \
class=MsoNormal><span style='font-family:"Georgia","serif";color:black'><a \
href="http://www.uci.cu/" target="_blank"><span \
style='color:black;text-decoration:none'>WSO2, \
Inc.<b><br></b>lean.enterprise.middleware.</span><span style='font-family:"Times New \
Roman","serif";color:#888888;text-decoration:none'><o:p></o:p></span></a></span></p></div><div><p \
class=MsoNormal><span style='font-family:"Georgia","serif"'><a \
href="http://www.uci.cu/" target="_blank"><span \
style='color:windowtext;text-decoration:none'>mobile : +94 772314602</span><span \
style='font-family:"Times New \
Roman","serif";color:windowtext;text-decoration:none'><o:p></o:p></span></a></span></p></div><p \
class=MsoNormal><span \
style='font-family:"Georgia","serif";color:black;background:white'><a \
href="http://www.uci.cu/" target="_blank"><span \
style='color:black;text-decoration:none'>blog</span><span \
style='color:windowtext;text-decoration:none'><u><span \
style='color:black'>&nbsp;</span></u><u><span \
style='color:#000099'>:</span></u></span><span style='font-family:"Times New \
Roman","serif";color:windowtext;text-decoration:none'><u><span \
style='font-family:"Georgia","serif";color:blue'>http://kasunweranga.blogspot.com/</span></u></span><span \
style='font-family:"Times New \
Roman","serif";color:windowtext;text-decoration:none'><o:p></o:p></span></a></span></p></div></div>
 <br><html>
<body>
<a href="http://www.uci.cu/">
<img src="http://universidad.uci.cu/email.gif"/>
</body>
</html>

<br></body></html>



_______________________________________________
User mailing list
User@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic