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

com.fitbur.github.dockerjava.jaxrs.async.POSTCallbackNotifier Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * Created on 23.06.2015
 */
package com.fitbur.github.dockerjava.jaxrs.async;

import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation.Builder;
import javax.ws.rs.core.Response;

import com.fitbur.github.dockerjava.api.async.ResultCallback;
import com.fitbur.github.dockerjava.core.async.ResponseStreamProcessor;

/**
 *
 * @author marcus
 *
 */
public class POSTCallbackNotifier extends AbstractCallbackNotifier {

    Entity entity = null;

    public POSTCallbackNotifier(ResponseStreamProcessor responseStreamProcessor, ResultCallback resultCallback,
            Builder requestBuilder, Entity entity) {
        super(responseStreamProcessor, resultCallback, requestBuilder);
        this.entity = entity;
    }

    protected Response response() {
        return requestBuilder.post(entity, Response.class);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy