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


Java Handlers.handlerNotNull方法代码示例

本文整理汇总了Java中io.undertow.Handlers.handlerNotNull方法的典型用法代码示例。如果您正苦于以下问题:Java Handlers.handlerNotNull方法的具体用法?Java Handlers.handlerNotNull怎么用?Java Handlers.handlerNotNull使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在io.undertow.Handlers的用法示例。


在下文中一共展示了Handlers.handlerNotNull方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
@Override
public MiddlewareHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;

}
 
开发者ID:networknt,项目名称:light-4j,代码行数:8,代码来源:MetricsHandler.java

示例2: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
@Override
public MiddlewareHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;
}
 
开发者ID:networknt,项目名称:light-graphql-4j,代码行数:7,代码来源:JwtVerifyHandler.java

示例3: setNoEncodingHandler

import io.undertow.Handlers; //导入方法依赖的package包/类
public EncodingHandler setNoEncodingHandler(HttpHandler noEncodingHandler) {
    Handlers.handlerNotNull(noEncodingHandler);
    this.noEncodingHandler = noEncodingHandler;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:EncodingHandler.java

示例4: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
public SessionAttachmentHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:SessionAttachmentHandler.java

示例5: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
public void setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AttachmentHandler.java

示例6: setDefaultHandler

import io.undertow.Handlers; //导入方法依赖的package包/类
public NameVirtualHostHandler setDefaultHandler(final HttpHandler defaultHandler) {
    Handlers.handlerNotNull(defaultHandler);
    this.defaultHandler = defaultHandler;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:NameVirtualHostHandler.java

示例7: addHost

import io.undertow.Handlers; //导入方法依赖的package包/类
public synchronized NameVirtualHostHandler addHost(final String host, final HttpHandler handler) {
    Handlers.handlerNotNull(handler);
    hosts.put(host, handler);
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:NameVirtualHostHandler.java

示例8: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
public SimpleErrorPageHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:SimpleErrorPageHandler.java

示例9: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
public FileErrorPageHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:FileErrorPageHandler.java

示例10: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
public OriginHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:OriginHandler.java

示例11: setOriginFailedHandler

import io.undertow.Handlers; //导入方法依赖的package包/类
public OriginHandler setOriginFailedHandler(HttpHandler originFailedHandler) {
    Handlers.handlerNotNull(originFailedHandler);
    this.originFailedHandler = originFailedHandler;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:OriginHandler.java

示例12: setNonUpgradeHandler

import io.undertow.Handlers; //导入方法依赖的package包/类
/**
 * Set the non-upgrade delegate handler.
 *
 * @param nonUpgradeHandler the non-upgrade delegate handler
 */
public ChannelUpgradeHandler setNonUpgradeHandler(final HttpHandler nonUpgradeHandler) {
    Handlers.handlerNotNull(nonUpgradeHandler);
    this.nonUpgradeHandler = nonUpgradeHandler;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:ChannelUpgradeHandler.java

示例13: setNext

import io.undertow.Handlers; //导入方法依赖的package包/类
public EncodingHandler setNext(final HttpHandler next) {
    Handlers.handlerNotNull(next);
    this.next = next;
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:EncodingHandler.java

示例14: addPrefixPath

import io.undertow.Handlers; //导入方法依赖的package包/类
/**
 * Adds a path prefix and a handler for that path. If the path does not start
 * with a / then one will be prepended.
 * <p/>
 * The match is done on a prefix bases, so registering /foo will also match /foo/bar.
 * Though exact path matches are taken into account before prefix path matches. So
 * if an exact path match exists it's  handler will be triggered.
 * <p/>
 * If / is specified as the path then it will replace the default handler.
 *
 * @param path    If the request contains this prefix, run handler.
 * @param handler The handler which is activated upon match.
 * @return The resulting PathHandler after this path has been added to it.
 */
public synchronized PathHandler addPrefixPath(final String path, final HttpHandler handler) {
    Handlers.handlerNotNull(handler);
    pathMatcher.addPrefixPath(path, handler);
    return this;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:20,代码来源:PathHandler.java


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