Package org.yamcs.http
Class HttpUtils
java.lang.Object
org.yamcs.http.HttpUtils
-
Field Summary
Modifier and TypeFieldDescriptionstatic final io.netty.handler.codec.http.FullHttpResponse
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getPathWithoutContext
(io.netty.handler.codec.http.HttpRequest req, String contextPath) Returns the path for the given HTTP request.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.
-
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.
-