class PermalinkControllerImpl implements PermalinkController {

    @Override
    public String uploadFile(FilePayload payload, HttpServer server) throws IOException, URISyntaxException
    {
        String host = server.getHost();

        StringBuilder builder = new StringBuilder();
        builder.append(server.getProtocol());
        builder.append("://");
        builder.append(host);
        String hostUrl = builder.toString();
        builder.append(getPermalinkUrl(host));
        FileUploader uploader = payload.createUploader(server, builder.toString());

        return hostUrl + uploader.upload();
    }

    public  PermalinkControllerImpl(ServerListManager serverListManager, ServerSourceControllerManager controllerManager);

}