Class GrpcUtil.AcceptEncodingMarshaller

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] parseAsciiString​(byte[] serialized)
      Parse a serialized metadata value from an ASCII string.
      byte[] toAsciiString​(byte[] value)
      Serialize a metadata value to a ASCII string that contains only the characters listed in the class comment of Metadata.AsciiMarshaller.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AcceptEncodingMarshaller

        private AcceptEncodingMarshaller()
    • Method Detail

      • toAsciiString

        public byte[] toAsciiString​(byte[] value)
        Description copied from interface: Metadata.TrustedAsciiMarshaller
        Serialize a metadata value to a ASCII string that contains only the characters listed in the class comment of Metadata.AsciiMarshaller. Otherwise the output may be considered invalid and discarded by the transport, or the call may fail.
        Specified by:
        toAsciiString in interface Metadata.TrustedAsciiMarshaller<byte[]>
        Parameters:
        value - to serialize
        Returns:
        serialized version of value, or null if value cannot be transmitted.