bbx/src/com/util/SmartRequest.java

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.util;
import java.util.Enumeration;
import java.util.Hashtable;

public class SmartRequest
{
    private Hashtable m_parameters;
    private int m_counter;

    SmartRequest()
    {
        m_parameters = new Hashtable();
        m_counter = 0;
    }

    protected void putParameter(String s,String s1)
    {
        if(s == null)
        {
            throw new IllegalArgumentException("The name of an element cannot be null.");
        }
        if(m_parameters.containsKey(s))
        {
            Hashtable hashtable = (Hashtable)m_parameters.get(s);
            hashtable.put(new Integer(hashtable.size()),s1);
        }
        else
        {
            Hashtable hashtable1 = new Hashtable();
            hashtable1.put(new Integer(0),s1);
            m_parameters.put(s,hashtable1);
            m_counter++;
        }
    }

    public String getParameter(String s)
    {
        if(s == null)
        {
            throw new IllegalArgumentException("Form's name is invalid or does not exist (1305).");
        }
        Hashtable hashtable = (Hashtable)m_parameters.get(s);
        if(hashtable == null)
        {
            return null;
        }
        else
        {
            return(String)hashtable.get(new Integer(0));
        }
    }

    public Enumeration getParameterNames()
    {
        return m_parameters.keys();
    }

    public String[] getParameterValues(String s)
    {
        if(s == null)
后面还有 16 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。