echoimpl.java
来自「Xfire文件 用于开发web service 的一个开源工具 很好用的」· Java 代码 · 共 51 行
JAVA
51 行
/* * Created on Dec 22, 2005 */package org.codehaus.xfire.security.wss4j;/** * Service that echoes the username and password back to the user in an xml * document * * @author Brian Bonner * */public class EchoImpl implements Echo{ public EchoImpl() { } /* * (non-Javadoc) * * @see org.codehaus.xfire.security.UsenamePasswordEchoService#echo(java.lang.String, * org.codehaus.xfire.MessageContext) */ public String echo(String inDocument) { // We really don't care what's in the incoming document// Document document = new Document();// Element echo = new Element("echo");// document.addContent(0, echo);// Element username = new Element("username");// username.setText((String) messageContext// .getProperty(SecurityConstants.SECURITY_IN_USER_NAME_CONTEXT_KEY));// echo.addContent(username);//// Element password = new Element("password");// password.setText((String) messageContext// .getProperty(SecurityConstants.SECURITY_IN_USER_PASS_CONTEXT_KEY));// echo.addContent(password);//// XMLOutputter outputter = new XMLOutputter();// return outputter.outputString(document); return inDocument; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?