public class HttpsRest extends HttpBaseRest {
private static final Logger LOG = LoggerFactory.getLogger(HttpsRest.class);
+ private static final String UNSUPPORTED_EXCEPTION = "UnsupportedEncodingException: ";
public void initHttpsRest() {
SslContextFactory sslContextFactory = new SslContextFactory();
"request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED));
}
} catch(UnsupportedEncodingException e) {
- LOG.error("UnsupportedEncodingException: ",e);
+ LOG.error(UNSUPPORTED_EXCEPTION,e);
} catch(Exception e) {//if not specific handling, no use of InterruptedException
LOG.error("InterruptedException: ",e);
}
"request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED));
}
} catch(UnsupportedEncodingException e) {
- LOG.error("UnsupportedEncodingException: ",e);
+ LOG.error(UNSUPPORTED_EXCEPTION,e);
} catch(Exception e) {
LOG.error("Exception: ",e);
}
"request is expierd: " + RestHttpContentExchange.toState(HttpExchange.STATUS_EXPIRED));
}
} catch(UnsupportedEncodingException e) {
- LOG.error("UnsupportedEncodingException: ",e);
+ LOG.error(UNSUPPORTED_EXCEPTION,e);
} catch(Exception e) {
LOG.error("Exception: ",e);
}