class HeaderHelper {

    public static long getContentLengthLong(MultivaluedMap<String, String> httpHeaders) {
        String contentLengthHeader = httpHeaders.getFirst(HttpHeaders.CONTENT_LENGTH);
        return contentLengthHeader == null ? 0 : Long.parseLong(contentLengthHeader);
    }

    private  HeaderHelper();

}