⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 echoimpl.java

📁 Xfire文件 用于开发web service 的一个开源工具 很好用的
💻 JAVA
字号:
/* * 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -