• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Enumerator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.apache.catalina.util.Enumerator的典型用法代码示例。如果您正苦于以下问题:Java Enumerator类的具体用法?Java Enumerator怎么用?Java Enumerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Enumerator类属于org.apache.catalina.util包,在下文中一共展示了Enumerator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the names of all request attributes for this Request, or an
 * empty <code>Enumeration</code> if there are none.
 */
public Enumeration getAttributeNames() {
    if (isSecure()) {
        getAttribute(Globals.CERTIFICATES_ATTR);
    }
    return new Enumerator(attributes.keySet(), true);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:Request.java


示例2: getLocales

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the set of preferred Locales that the client will accept
 * content in, based on the values for any <code>Accept-Language</code>
 * headers that were encountered.  If the request did not specify a
 * preferred language, the server's default Locale is returned.
 */
public Enumeration getLocales() {

    if (!localesParsed)
        parseLocales();

    if (locales.size() > 0)
        return (new Enumerator(locales));
    ArrayList results = new ArrayList();
    results.add(defaultLocale);
    return (new Enumerator(results));

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:Request.java


示例3: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Override the <code>getAttributeNames()</code> method of the wrapped
 * request.
 */
public Enumeration getAttributeNames() {

    synchronized (attributes) {
        return (new Enumerator(attributes.keySet()));
    }

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:ApplicationRequest.java


示例4: getInitParameterNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the set of initialization parameter names defined for this
 * servlet.  If none are defined, an empty Enumeration is returned.
 */
public Enumeration getInitParameterNames() {

    synchronized (parameters) {
        return (new Enumerator(parameters.keySet()));
    }

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:StandardWrapper.java


示例5: getInitParameterNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return an <code>Enumeration</code> of the names of the initialization
 * parameters for this Filter.
 */
public Enumeration getInitParameterNames() {

    Map map = filterDef.getParameterMap();
    if (map == null)
        return (new Enumerator(new ArrayList()));
    else
        return (new Enumerator(map.keySet()));

}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:ApplicationFilterConfig.java


示例6: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return an <code>Enumeration</code> of <code>String</code> objects
 * containing the names of the objects bound to this session.
 *
 * @exception IllegalStateException if this method is called on an
 *  invalidated session
 */
public Enumeration getAttributeNames() {

    if (!isValid)
        throw new IllegalStateException
            (sm.getString("standardSession.getAttributeNames.ise"));

    synchronized (attributes) {
        return (new Enumerator(attributes.keySet()));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:19,代码来源:StandardSession.java


示例7: getHeaders

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return all of the values of the specified header, if any; otherwise,
 * return an empty enumeration.
 *
 * @param name Name of the requested header
 */
public Enumeration getHeaders(String name) {

    name = name.toLowerCase();
    synchronized (headers) {
        ArrayList values = (ArrayList) headers.get(name);
        if (values != null)
            return (new Enumerator(values));
        else
            return (new Enumerator(empty));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:19,代码来源:HttpRequestBase.java


示例8: getHeaderNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the names of all headers received with this request.
 */
public Enumeration getHeaderNames() {

    synchronized (headers) {
        return (new Enumerator(headers.keySet()));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:11,代码来源:HttpRequestBase.java


示例9: getHeaders

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return all of the values of the specified header, if any; otherwise,
 * return an empty enumeration.
 *
 * @param name Name of the requested header
 */
public Enumeration getHeaders(String name) {

    name = name.toLowerCase();
    ArrayList tempArrayList = new ArrayList();
    for (int i = 0; i < nextHeader; i++) {
        if (headerPool[i].equals(name))
            tempArrayList.add(new String(headerPool[i].value, 0,
                                         headerPool[i].valueEnd));
    }
    return (Enumeration) new Enumerator(tempArrayList);

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:19,代码来源:HttpRequestImpl.java


示例10: getHeaderNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the names of all headers received with this request.
 */
public Enumeration getHeaderNames() {
    ArrayList tempArrayList = new ArrayList();
    for (int i = 0; i < nextHeader; i++) {
        tempArrayList.add(new String(headerPool[i].name, 0,
                                     headerPool[i].nameEnd));
    }
    return (Enumeration) new Enumerator(tempArrayList);

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:13,代码来源:HttpRequestImpl.java


示例11: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the names of all request attributes for this Request, or an
 * empty <code>Enumeration</code> if there are none.
 */
public Enumeration getAttributeNames() {

    synchronized (attributes) {
        return (new Enumerator(attributes.keySet()));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:12,代码来源:RequestBase.java


示例12: getLocales

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the set of preferred Locales that the client will accept
 * content in, based on the values for any <code>Accept-Language</code>
 * headers that were encountered.  If the request did not specify a
 * preferred language, the server's default Locale is returned.
 */
public Enumeration getLocales() {

    synchronized (locales) {
        if (locales.size() > 0)
            return (new Enumerator(locales));
    }
    ArrayList results = new ArrayList();
    results.add(defaultLocale);
    return (new Enumerator(results));

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:18,代码来源:RequestBase.java


示例13: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return an enumeration of the names of the context attributes
 * associated with this context.
 */
public Enumeration getAttributeNames() {

    synchronized (attributes) {
        return (new Enumerator(attributes.keySet()));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:12,代码来源:ApplicationContext.java


示例14: getInitParameterNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return the names of the context's initialization parameters, or an
 * empty enumeration if the context has no initialization parameters.
 */
public Enumeration getInitParameterNames() {

    mergeParameters();
    synchronized (parameters) {
        return (new Enumerator(parameters.keySet()));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:13,代码来源:ApplicationContext.java


示例15: getParameterNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Override the <code>getParameterNames()</code> method of the
 * wrapped request.
 */
public Enumeration getParameterNames() {

    synchronized (parameters) {
        return (new Enumerator(parameters.keySet()));
    }

}
 
开发者ID:c-rainstorm,项目名称:jerrydog,代码行数:12,代码来源:ApplicationHttpRequest.java


示例16: getHeaders

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
@Override
public Enumeration<?> getHeaders(String name) {
	name = name.toLowerCase();
       List<Object> values = headers.get(name);
       if (values != null) {
           return new Enumerator(values);
       } else {
           return new Enumerator(new ArrayList<>());
       }
}
 
开发者ID:Saisimon,项目名称:tip,代码行数:11,代码来源:HttpRequest.java


示例17: getHeaders

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
public Enumeration getHeaders(String name) {
  name = name.toLowerCase();
  synchronized (headers) {
    ArrayList values = (ArrayList) headers.get(name);
    if (values != null)
      return (new Enumerator(values));
    else
      return (new Enumerator(empty));
  }
}
 
开发者ID:erdangjiade,项目名称:studyTomcat,代码行数:11,代码来源:HttpRequest.java


示例18: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return an <code>Enumeration</code> of <code>String</code> objects
 * containing the names of the objects bound to this session.
 *
 * @throws IllegalStateException if this method is called on an
 *                               invalidated session
 */
public Enumeration getAttributeNames() {
    if (!isValidInternal())
        throw new IllegalStateException
                (sm.getString("standardSession.getAttributeNames.ise"));
    Set keySet = attributes.keySet();
    keySet.remove(SESSION_MARK);
    return (new Enumerator(keySet, true));
}
 
开发者ID:mdogan,项目名称:hazelcast-archive,代码行数:16,代码来源:HazelcastSession.java


示例19: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public Enumeration<String> getAttributeNames() {
    return new MultiEnumeration<String>(new Enumeration[] {
            super.getAttributeNames(),
            new Enumerator<String>(tomcatAttributes.keySet(), true)});
}
 
开发者ID:WhiteBearSolutions,项目名称:WBSAirback,代码行数:8,代码来源:ReplicatedContext.java


示例20: getAttributeNames

import org.apache.catalina.util.Enumerator; //导入依赖的package包/类
/**
 * Return an <code>Enumeration</code> of <code>String</code> objects
 * containing the names of the objects bound to this session.
 *
 * @exception IllegalStateException if this method is called on an
 *  invalidated session
 */
@Override
public Enumeration<String> getAttributeNames() {

    if (!isValidInternal())
        throw new IllegalStateException
            (sm.getString("standardSession.getAttributeNames.ise"));

    return (new Enumerator<String>(attributes.keySet(), true));

}
 
开发者ID:WhiteBearSolutions,项目名称:WBSAirback,代码行数:18,代码来源:StandardSession.java



注:本文中的org.apache.catalina.util.Enumerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java QueryState类代码示例发布时间:2022-05-23
下一篇:
Java ScalarStyle类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap