protected String generateETagHeaderValue ( byte [ ] bytes ) { StringBuilder builder = new StringBuilder ( "\"0" ) ; DigestUtils . appendMd5DigestAsHex ( bytes , builder ) ; builder . append ( ' ' ) ; return builder . toString ( ) ; }
Generate the ETag header value from the given response body byte array .