Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.client.call;
 
 
 public abstract class CallResult
 {
     protected final int _status;
 
     protected final CallFailure _fail;
    protected CallResult(int statusCode) {
        this(statusCodenull);
    }
    protected CallResult(CallFailure fail) {
        this(fail.getStatusCode(), fail);
    }
    
    protected CallResult(int statusCodeCallFailure fail)
    {
         = statusCode;
         = fail;
    }
    /*
    /**********************************************************************
    /* Public API
    /**********************************************************************
     */
    
    public int getStatus() { return ; }
    public abstract String getHeaderValue(String key);
    
    public boolean failed() { return  != null; }
    public boolean succeeded() { return !failed(); }
    public CallFailure getFailure() { return ; }
New to GrepCode? Check out our FAQ X