當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。