public XmlHttpSerializer(URL url, final String username, final String password) {
authorizationString = "Basic "
+ Base64.encode((username + ":" + password).getBytes(), 0);
this.url = url;
scheduler = Executors.newSingleThreadScheduledExecutor(new LoggingThreadFactory("http"));
synchronized (pollerLock) {
poller = new DummyScheduledFuture<Object>();
}
}