org.webpieces.webserver.impl.RequestReceiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-webserver Show documentation
Show all versions of http-webserver Show documentation
The full webpieces server AS A library
package org.webpieces.webserver.impl;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.webpieces.frontend2.api.HttpStream;
import org.webpieces.frontend2.api.StreamListener;
@Singleton
public class RequestReceiver implements StreamListener {
//private static final Logger log = LoggerFactory.getLogger(RequestReceiver.class);
private final RequestHelpFacade facade;
@Inject
public RequestReceiver(RequestHelpFacade facade) {
super();
this.facade = facade;
}
@Override
public HttpStream openStream() {
return new WebpiecesStreamHandle(facade);
}
}