
org.webpieces.httpproxy.impl.responsechain.Layer1Response Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of embeddablehttpproxy Show documentation
Show all versions of embeddablehttpproxy Show documentation
Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property
The newest version!
package org.webpieces.httpproxy.impl.responsechain;
import org.webpieces.frontend.api.FrontendSocket;
import org.webpieces.httpclient.api.ResponseListener;
import org.webpieces.httpparser.api.dto.HttpChunk;
import org.webpieces.httpparser.api.dto.HttpRequest;
import org.webpieces.httpparser.api.dto.HttpResponse;
public class Layer1Response implements ResponseListener {
private Layer2ResponseListener responseListener;
private FrontendSocket channel;
private HttpRequest req;
public Layer1Response(Layer2ResponseListener responseListener, FrontendSocket channel, HttpRequest req) {
this.responseListener = responseListener;
this.channel = channel;
this.req = req;
}
@Override
public void incomingResponse(HttpResponse resp, boolean isComplete) {
responseListener.processResponse(channel, req, resp, isComplete);
}
@Override
public void incomingChunk(HttpChunk chunk, boolean isLastChunk) {
responseListener.processResponse(channel, req, chunk, isLastChunk);
}
@Override
public void failure(Throwable e) {
responseListener.processError(channel, req, e);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy