Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.client.call;
 
 
 public abstract class HeadCallResult
     extends CallResult
 {
     protected final long _contentLength;
 
    /*
    /**********************************************************************
    /* Construction, initialization
    /**********************************************************************
     */
    
    protected HeadCallResult(int statuslong contentLength)
    {
        super(status);
         = contentLength;
    }
    protected HeadCallResult(CallFailure fail)
    {
        super(fail);
         = -1;
    }
    /*
    /**********************************************************************
    /* CallResult impl
    /**********************************************************************
     */
    @Override
    public abstract String getHeaderValue(String key);
    /*
    /**********************************************************************
    /* Extended API
    /**********************************************************************
     */
    
    public long getContentLength() { return ; }
    public boolean hasContentLength() { return  >= 0L; }
New to GrepCode? Check out our FAQ X