本文整理汇总了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;
}
示例2: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
@Override
public MiddlewareHandler setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
return this;
}
示例3: setNoEncodingHandler
import io.undertow.Handlers; //导入方法依赖的package包/类
public EncodingHandler setNoEncodingHandler(HttpHandler noEncodingHandler) {
Handlers.handlerNotNull(noEncodingHandler);
this.noEncodingHandler = noEncodingHandler;
return this;
}
示例4: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
public SessionAttachmentHandler setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
return this;
}
示例5: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
public void setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
}
示例6: setDefaultHandler
import io.undertow.Handlers; //导入方法依赖的package包/类
public NameVirtualHostHandler setDefaultHandler(final HttpHandler defaultHandler) {
Handlers.handlerNotNull(defaultHandler);
this.defaultHandler = defaultHandler;
return this;
}
示例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;
}
示例8: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
public SimpleErrorPageHandler setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
return this;
}
示例9: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
public FileErrorPageHandler setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
return this;
}
示例10: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
public OriginHandler setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
return this;
}
示例11: setOriginFailedHandler
import io.undertow.Handlers; //导入方法依赖的package包/类
public OriginHandler setOriginFailedHandler(HttpHandler originFailedHandler) {
Handlers.handlerNotNull(originFailedHandler);
this.originFailedHandler = originFailedHandler;
return this;
}
示例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;
}
示例13: setNext
import io.undertow.Handlers; //导入方法依赖的package包/类
public EncodingHandler setNext(final HttpHandler next) {
Handlers.handlerNotNull(next);
this.next = next;
return this;
}
示例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;
}