java.lang.Object
org.yamcs.http.HttpUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.netty.handler.codec.http.FullHttpResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPathWithoutContext(io.netty.handler.codec.http.HttpRequest req, String contextPath) Returns the path for the given HTTP request.static StringgetUriWithoutContext(io.netty.handler.codec.http.HttpRequest req, String contextPath) Returns the uri for the given HTTP request, but with the context path removed.
-
Field Details
-
CONTINUE_RESPONSE
public static final io.netty.handler.codec.http.FullHttpResponse CONTINUE_RESPONSE
-
-
Constructor Details
-
HttpUtils
public HttpUtils()
-
-
Method Details
-
getPathWithoutContext
public static String getPathWithoutContext(io.netty.handler.codec.http.HttpRequest req, String contextPath) Returns the path for the given HTTP request. This path does not contain any query string information, and the leading context path is removed. -
getUriWithoutContext
public static String getUriWithoutContext(io.netty.handler.codec.http.HttpRequest req, String contextPath) Returns the uri for the given HTTP request, but with the context path removed. The query string (if any) remains intact.
-