org.yeauty.support.DefaultPathMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netty-websocket-spring-boot-starter Show documentation
Show all versions of netty-websocket-spring-boot-starter Show documentation
netty-websocket-spring-boot-starter is a Java WebSocket Framework based on Netty
package org.yeauty.support;
import io.netty.channel.Channel;
import io.netty.handler.codec.http.QueryStringDecoder;
public class DefaultPathMatcher implements WsPathMatcher {
private String pattern;
public DefaultPathMatcher(String pattern) {
this.pattern = pattern;
}
@Override
public String getPattern() {
return this.pattern;
}
@Override
public boolean matchAndExtract(QueryStringDecoder decoder, Channel channel) {
if (!pattern.equals(decoder.path())) {
return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy