Get IP informations in AXIS2 SOAP
These days we had this requirements. Just record the SOAP client's IP address.
package com.sillycat.easyaxis2proxy.service;
import javax.servlet.http.HttpServletRequest;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.transport.http.HTTPConstants;
import org.apache.log4j.Logger;
public class BaseWebService {
public Logger logger = Logger.getLogger(this.getClass());
public String getClientIp() {
MessageContext mc = MessageContext.getCurrentMessageContext();
HttpServletRequest request = (HttpServletRequest) mc
.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
logger.info("remote ip: " + request.getRemoteAddr());
return request.getRemoteAddr();
}
}
分享到:
相关推荐
【Get Informations-crx插件】是一款专为葡萄牙语(巴西)用户设计的浏览器扩展程序,它主要功能是帮助用户获取网页中的JavaScript数据对象的各种元标记值。在深入探讨这款插件之前,我们先理解一下元标记和...
【标题】"Country Informations / IP2Country + Info-开源" 涉及的主要知识点是地理定位和数据处理,特别是将IP地址与对应的国家/地区信息进行关联。这个Java库提供了一个高效的方法来解决网络应用中常见的问题,即...
2. Fire our keygen, press Crack and pick Cebas/Ip-clamp dir. (only the public crypto key will be patched) 3. Now you can reboot and make sure ipclamp service is running. 4. Launch IP-Clamp.exe and ...
获取信息 您几乎可以获得javascript数据对象的每个元标记值。 支持语言:português (Brasil)
2. **类和对象**:深入理解面向对象编程概念,如封装、继承和多态。了解如何创建和使用类、对象,以及类的访问修饰符(public, private, protected, default)。同时,理解构造函数、this关键字、静态成员和final...
encrypt about information security
描述"get camera informations, base on v4l2"表明这个项目的主要目标是获取相机的信息,这是通过V4L2 API来实现的。 在V4L2中,开发者可以使用一系列函数来控制摄像头,如打开设备、配置视频格式、捕获帧、调整...
You will immediately get a link to source page, direct download link, alive status of download link and other informations in one well-arranged table in the style of MS Excel. Are you a software ...
routing of informations in wireless neural networks
黑莓Mep读取软件 blackberry_informations_reader imei\MEP读取工具
在IT领域,Citrix XenDesktop是一款广泛使用的桌面虚拟化解决方案,它允许企业为用户提供远程访问虚拟桌面环境的能力。本文将详细解析XenDesktop显示名称和版本信息,以及与其相关的组件和配置。...
Results are displayed in real time in the window with various informations on progression. Files and folders found are displayed in a friendly mini Windows-Explorer. You can then open links found on ...
New component TJvUIBRepair. New component TJvUIBSecurity New component TJvUIBEvents...., if you don‘t want to use synedit, desactivate this option in jvuib.inc. Firebird 2 compatibility. Again faster :)
It's possible to store devices informations and to get a statistic on power consume. You can store fishes common data near Your fishes, invertebrates and plants data and compare them to aquarium ...
Special informations about it: 1. It supports all funnctions of common image-mapping games. 2. It supports user-defined game settings, such as image, size, game difficulty, how to split image and so ...
vcl components for all delphi vr
<END><br>12 , telnet.zip Telnet Application<END><br>13 , validip.zip Validate an IP address 14 , dmvbtest.zip This is a complete email sending client in Visual Basic<END><br>15 , ...
sql文件
读取EXCEL文件内容的C#代码示例 It can read read worksheets in a workbook and read cells in a worksheet...It can read pictures in the file, get informations of image size, position, data and format.
- Use PE Header informations from dump or disk (in Options) - Debug privilege is now managed and damaged PDB can be repaired (Thanks to EliCZ) - Renormalized exports (for Win9x/ME only) - Fixed a ...