Refine search
protected String getBasePath(String contextPath) throws IOException { String address = getAddress().getAddress().getValue(); if (address == null) { return contextPath; } if (address.startsWith("http")) { return URI.create(address).getPath(); } return contextPath + address; }
protected String getBasePath(String contextPath) throws IOException { return contextPath + getAddress().getAddress().getValue(); }
/** * @return the default target address */ public String getAddress() { if (defaultAddress != null) { return defaultAddress.getString(); } else if (fromEndpointReferenceType) { return getTarget().getAddress().getValue(); } return endpointInfo.getAddress(); }
private Address setAndGetDefaultAddress() throws URISyntaxException { if (defaultAddress == null) { synchronized (this) { if (defaultAddress == null) { if (fromEndpointReferenceType && getTarget().getAddress().getValue() != null) { defaultAddress = new Address(this.getTarget().getAddress().getValue()); } else if (endpointInfo.getAddress() != null) { defaultAddress = new Address(endpointInfo.getAddress()); } } } } return defaultAddress; }
protected void updateDestination(HttpServletRequest request, String base, AbstractHTTPDestination d) { String ad = d.getEndpointInfo().getAddress(); if (ad == null && d.getAddress() != null && d.getAddress().getAddress() != null) { ad = d.getAddress().getAddress().getValue(); if (ad == null) { ad = "/"; } } // Using HTTP_PREFIX check is safe for ServletController // URI.create(ad).isRelative() can be used - a bit more expensive though if (ad != null && !ad.startsWith(HTTP_PREFIX)) { if (disableAddressUpdates) { request.setAttribute("org.apache.cxf.transport.endpoint.address", base + ad); } else { BaseUrlHelper.setAddress(d, base + ad); } } }
private static String getAddressValue(EndpointReferenceType epr) { if (null != epr && null != epr.getAddress()) { return epr.getAddress().getValue(); } return null; }
/** * Get the address from the provided endpoint reference. * @param ref - the endpoint reference * @return String the address of the endpoint */ public static String getAddress(EndpointReferenceType ref) { AttributedURIType a = ref.getAddress(); if (null != a) { return a.getValue(); } return null; }
/** * Helper method to determine if an EPR address is none. * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isNoneAddress(EndpointReferenceType ref) { return ref != null && ref.getAddress() != null && Names.WSA_NONE_ADDRESS.equals(ref.getAddress().getValue()); }
/** * Helper method to determine if an EPR address is anon (either null, * anonymous). * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isAnonymousAddress(EndpointReferenceType ref) { return ref == null || ref.getAddress() == null || Names.WSA_ANONYMOUS_ADDRESS.equals(ref.getAddress().getValue()); }
/** * Helper method to determine if an EPR address is none. * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isNoneAddress(EndpointReferenceType ref) { return ref != null && ref.getAddress() != null && Names.WSA_NONE_ADDRESS.equals(ref.getAddress().getValue()); }
/** * Helper method to determine if an EPR address is none. * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isNoneAddress(EndpointReferenceType ref) { return ref != null && ref.getAddress() != null && Names.WSA_NONE_ADDRESS.equals(ref.getAddress().getValue()); }
/** * Helper method to determine if an EPR address is none. * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isNoneAddress(EndpointReferenceType ref) { return ref != null && ref.getAddress() != null && Names.WSA_NONE_ADDRESS.equals(ref.getAddress().getValue()); }
/** * Get the address from the provided endpoint reference. * @param ref - the endpoint reference * @return String the address of the endpoint */ public static String getAddress(EndpointReferenceType ref) { AttributedURIType a = ref.getAddress(); if (null != a) { return a.getValue(); } return null; }
proxyFac.setServiceName(serviceName); if (epr != null && epr.getAddress() != null && epr.getAddress().getValue() != null) { clientFac.setAddress(epr.getAddress().getValue());
/** * Helper method to determine if an EPR address is generic (either null, * none or anonymous). * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isGenericAddress(EndpointReferenceType ref) { return ref == null || ref.getAddress() == null || Names.WSA_ANONYMOUS_ADDRESS.equals(ref.getAddress().getValue()) || Names.WSA_NONE_ADDRESS.equals(ref.getAddress().getValue()); }
public static boolean containsUsableEPR(EndpointReferenceType ert) { try { return ert.getAddress().getValue().length() > 0; } catch (NullPointerException ex) { return false; } } }
public static boolean containsUsableEPR(EndpointReferenceType ert) { try { return ert.getAddress().getValue().length() > 0; } catch (NullPointerException ex) { return false; } } }
/** * Helper method to determine if an EPR address is anon (either null, * anonymous). * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isAnonymousAddress(EndpointReferenceType ref) { return ref == null || ref.getAddress() == null || startsWith(ref.getAddress().getValue(), Names.WSA_ANONYMOUS_ADDRESS); }
/** * Helper method to determine if an EPR address is anon (either null, * anonymous). * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isAnonymousAddress(EndpointReferenceType ref) { return ref == null || ref.getAddress() == null || startsWith(ref.getAddress().getValue(), Names.WSA_ANONYMOUS_ADDRESS); }
/** * Helper method to determine if an EPR address is generic (either null, * none or anonymous). * * @param ref the EPR under test * @return true if the address is generic */ public static boolean isGenericAddress(EndpointReferenceType ref) { return ref == null || ref.getAddress() == null || startsWith(ref.getAddress().getValue(), Names.WSA_ANONYMOUS_ADDRESS) || startsWith(ref.getAddress().getValue(), Names.WSA_NONE_ADDRESS); }