protected void configure(T ticketValidator) { if (urlConnectionFactory != null) { ticketValidator.setURLConnectionFactory(urlConnectionFactory); } if (customParameters != null) { ticketValidator.setCustomParameters(customParameters); } ticketValidator.setRenew(renew); } }
/** * Retrieves the response from the server by opening a connection and merely reading the response. */ protected final String retrieveResponseFromServer(final URL validationUrl, final String ticket) { return CommonUtils.getResponseFromServer(validationUrl, getURLConnectionFactory(), getEncoding()); } }
/** * Retrieves the response from the server by opening a connection and merely reading the response. */ protected final String retrieveResponseFromServer(final URL validationUrl, final String ticket) { if (this.hostnameVerifier != null) { return CommonUtils.getResponseFromServer(validationUrl, this.hostnameVerifier, getEncoding()); } else { return CommonUtils.getResponseFromServer(validationUrl, getEncoding()); } } }