java1996 2017-08-28 01:27 采纳率: 0%
浏览 741

求教这个代码是什么意思。。。

package org.owasp.webgoat.plugin;

import org.apache.ecs.Element;
import org.apache.ecs.ElementContainer;
import org.apache.ecs.StringElement;
import org.owasp.webgoat.lessons.Category;
import org.owasp.webgoat.lessons.LessonAdapter;
import org.owasp.webgoat.session.WebSession;

public class HowToWork extends LessonAdapter
{
/**
* Description of the Method
*
* @param s
* Description of the Parameter
* @return Description of the Return Value
*/
protected Element createContent(WebSession s)
{
makeSuccess(s);
ElementContainer ec = new ElementContainer();
ec.addElement(new StringElement("Welcome to WebGoat !!"));
return (ec);
}

/**
 * Gets the category attribute of the HowToWork object
 * 
 * @return The category value
 */
protected Category getDefaultCategory()
{
    return Category.INTRODUCTION;
}

private final static Integer DEFAULT_RANKING = new Integer(10);

protected Integer getDefaultRanking()
{
    return DEFAULT_RANKING;
}

/**
 * Gets the title attribute of the DirectoryScreen object
 * 
 * @return The title value
 */
public String getTitle()
{
    return ("How to work with WebGoat");
}

}

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料