All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fasterxml.storemate.client.call.GetCallResult Maven / Gradle / Ivy

There is a newer version: 0.8.8
Show newest version
package com.fasterxml.storemate.client.call;

import com.fasterxml.storemate.client.CallFailure;

public abstract class GetCallResult
    extends CallResult
{
    protected final T _result;

    /*
    ///////////////////////////////////////////////////////////////////////
    // Construction, initialization
    ///////////////////////////////////////////////////////////////////////
     */
    
    protected GetCallResult(int status, T result)
    {
        super(status);
        _result = result;
    }

    protected GetCallResult(CallFailure fail)
    {
        super(fail);
        _result = null;
    }

    /*
    ///////////////////////////////////////////////////////////////////////
    // CallResult impl
    ///////////////////////////////////////////////////////////////////////
     */

    @Override
    public abstract String getHeaderValue(String key);
    
    /*
    ///////////////////////////////////////////////////////////////////////
    // Extended API
    ///////////////////////////////////////////////////////////////////////
     */
    
    public T getResult() { return _result; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy