Java WebService 知识点汇总

 

java webservice 获取传入IP

axis.jar    servlet.jar

MessageContext mMsgContext = MessageContext.getCurrentContext();
HttpServletRequest mRequest =   (HttpServletRequest) mMsgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);

String cClientIp = mRequest.getRemoteAddr();

上一篇:【Linux教程】Linux系统零基础编程入门,想当大神?这些你都要学


下一篇:Linux 下socket通信终极指南(附TCP、UDP完整代码)