本文整理匯總了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;
}