public boolean isSecure() { String value = HttpUtils.getEndpointAddress(m); return value.startsWith("https://"); }
public boolean isSecure() { String value = HttpUtils.getEndpointAddress(m); return value.startsWith("https://"); }
@Override public boolean isSecure() { String value = HttpUtils.getEndpointAddress(JAXRSUtils.getCurrentMessage()); return value.startsWith("https://"); }
@Override public boolean isSecure() { String value = HttpUtils.getEndpointAddress(JAXRSUtils.getCurrentMessage()); return value.startsWith("https://"); }
public URI getBaseUri() { URI u = URI.create(HttpUtils.getEndpointAddress(message)); return HttpUtils.toAbsoluteUri(u, message); }
public URI getBaseUri() { URI u = URI.create(HttpUtils.getEndpointAddress(message)); return HttpUtils.toAbsoluteUri(u, message); }
public static String getBaseAddress(Message m) { String endpointAddress = getEndpointAddress(m); try { URI uri = new URI(endpointAddress); String path = uri.getRawPath(); String scheme = uri.getScheme(); if (scheme != null && !scheme.startsWith(HttpUtils.HTTP_SCHEME) && HttpUtils.isHttpRequest(m)) { path = HttpUtils.toAbsoluteUri(path, m).getRawPath(); } return (path == null || path.length() == 0) ? "/" : path; } catch (URISyntaxException ex) { return endpointAddress == null ? "/" : endpointAddress; } }
public static String getBaseAddress(Message m) { String endpointAddress = getEndpointAddress(m); try { URI uri = new URI(endpointAddress); String path = uri.getRawPath(); String scheme = uri.getScheme(); if (scheme != null && !scheme.startsWith(HttpUtils.HTTP_SCHEME) && HttpUtils.isHttpRequest(m)) { path = HttpUtils.toAbsoluteUri(path, m).getRawPath(); } return path.length() == 0 ? "/" : path; } catch (URISyntaxException ex) { return endpointAddress == null ? "/" : endpointAddress; } }
private static String getPath(Message message) { String address = HttpUtils.getEndpointAddress(message); if (MessageUtils.isRequestor(message)) { return address; } String path = HttpUtils.getPathToMatch(message, false); return address + path; }
private static String getPath(Message message) { String address = HttpUtils.getEndpointAddress(message); if (MessageUtils.isRequestor(message)) { return address; } String path = HttpUtils.getPathToMatch(message, false); return address + path; }
String endpointAddress = HttpUtils.getEndpointAddress(m); Object basePathProperty = m.get(Message.BASE_PATH); if (ignoreBasePath && basePathProperty != null && !"/".equals(basePathProperty)) {
String endpointAddress = HttpUtils.getEndpointAddress(m); Object basePathProperty = m.get(Message.BASE_PATH); if (ignoreBasePath && basePathProperty != null && !"/".equals(basePathProperty)) {