Class GetRouterRequest


  • public class GetRouterRequest
    extends RouterRequest
    GetRouterRequest encapsulates a GET request to storage/resourcename/partition/key on the storage node for a single-get operation.
    • Method Detail

      • getPartition

        public int getPartition()
      • getKeyBytes

        public byte[] getKeyBytes()
      • parseGetHttpRequest

        public static GetRouterRequest parseGetHttpRequest​(io.netty.handler.codec.http.HttpRequest request,
                                                           java.lang.String[] requestParts)
      • getKeyBytesFromUrlKeyString

        public static byte[] getKeyBytesFromUrlKeyString​(java.lang.String keyString)
      • verifyApiVersion

        public static void verifyApiVersion​(io.netty.handler.codec.http.HttpHeaders headers,
                                            java.lang.String expectedVersion)
        throws VeniceException if we don't handle the specified api version
        Parameters:
        headers -