Package com.linkedin.venice.router.api
Class VenicePathParserHelper
- java.lang.Object
-
- com.linkedin.venice.router.api.VenicePathParserHelper
-
public class VenicePathParserHelper extends java.lang.Object
Created by mwise on 4/25/16.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
extractQueryParameters(io.netty.handler.codec.http.HttpRequest request)
We provide this method as a utility function as opposed to storing the query parameters in this class.java.lang.String
getKey()
java.lang.String
getResourceName()
RouterResourceType
getResourceType()
static VenicePathParserHelper
parseRequest(io.netty.handler.codec.http.HttpRequest request)
-
-
-
Method Detail
-
parseRequest
public static VenicePathParserHelper parseRequest(io.netty.handler.codec.http.HttpRequest request)
-
extractQueryParameters
public java.util.Map<java.lang.String,java.lang.String> extractQueryParameters(io.netty.handler.codec.http.HttpRequest request)
We provide this method as a utility function as opposed to storing the query parameters in this class. We do this because we only really need these parameters for some very specific circumstances, so we avoid keeping around extra maps on heap in the data path.- Parameters:
request
- request to have it's query parameters extracted- Returns:
- a map keyed by the parameter name and accompanied by it's associated value.
-
getResourceType
public RouterResourceType getResourceType()
-
getResourceName
public java.lang.String getResourceName()
-
getKey
public java.lang.String getKey()
-
-