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条回答

    报告相同问题?

    悬赏问题

    • ¥15 按键修改电子时钟,C51单片机
    • ¥60 Java中实现如何实现张量类,并用于图像处理(不运用其他科学计算库和图像处理库))
    • ¥20 5037端口被adb自己占了
    • ¥15 python:excel数据写入多个对应word文档
    • ¥60 全一数分解素因子和素数循环节位数
    • ¥15 ffmpeg如何安装到虚拟环境
    • ¥188 寻找能做王者评分提取的
    • ¥15 matlab用simulink求解一个二阶微分方程,要求截图
    • ¥30 乘子法解约束最优化问题的matlab代码文件,最好有matlab代码文件
    • ¥15 写论文,需要数据支撑