当前位置: 首页>>代码示例>>Java>>正文


Java DomainFilterInterceptor类代码示例

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


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

示例1: addRandomDomain

import org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor; //导入依赖的package包/类
/**
 * Configures a set of channels to use a random domain. Use to ensure that
 * multiple instance of the test suite do not interfere when running on the
 * same machine. This may happen in a CI system or when a developer is
 * running tests for multiple branches in parallel.
 */
public static void addRandomDomain(ManagedChannel[] channels) {
    if (channels == null) {
        return;
    }

    byte[] domain = UUIDGenerator.randomUUID(false);

    for (ManagedChannel channel : channels) {
        channel.getMembershipService().setDomain(domain);
        DomainFilterInterceptor filter = new DomainFilterInterceptor();
        filter.setDomain(domain);
        channel.addInterceptor(filter);
    }
}
 
开发者ID:liaokailin,项目名称:tomcat7,代码行数:21,代码来源:TesterUtil.java

示例2: addInterceptors

import org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor; //导入依赖的package包/类
public void addInterceptors(Channel channel) {
    DomainFilterInterceptor dfi = new DomainFilterInterceptor();
    dfi.setOptionFlag(TribesConstants.MEMBERSHIP_MSG_OPTION);
    dfi.setDomain(domain);
    channel.addInterceptor(dfi);
    if (log.isDebugEnabled()) {
        log.debug("Added Domain Filter Interceptor");
    }
}
 
开发者ID:wso2,项目名称:wso2-axis2,代码行数:10,代码来源:ApplicationMode.java


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