class HttpServerImpl implements HttpServer {

    @Override
    public CancellableInputStream sendPost(URL url, InputStream postData, Map<String, String> extraHeaderValues,
            ResponseValues response, ContentType contentType)
        throws IOException, URISyntaxException
    {
        assert !EventQueue.isDispatchThread();
        assert !Platform.isFxApplicationThread();

        com.bitsys.common.http.header.ContentType commonContentType = com.bitsys.common.http.header.ContentType.APPLICATION_XML;

        if (contentType == ContentType.JSON)
        {
            commonContentType = com.bitsys.common.http.header.ContentType.APPLICATION_JSON;
        }

        return myRequestorProvider.getPostRequestor().sendPost(url, postData, extraHeaderValues, response, commonContentType);
    }

    public  HttpServerImpl(String host, String protocol, RequestorProvider requestorProvider);

}