/** * Constructor * * @param b the associated Bus * @param registry the destination registry * @param ei the endpoint info of the destination * @param path the path * @param dp true for adding the default port if it is missing * @throws IOException */ public AbstractHTTPDestination(Bus b, DestinationRegistry registry, EndpointInfo ei, String path, boolean dp) throws IOException { super(b, getTargetReference(getAddressValue(ei, dp), b), ei); this.bus = b; this.registry = registry; this.path = path; try { ServletRequest.class.getMethod("isAsyncSupported"); isServlet3 = true; } catch (Throwable t) { //servlet 2.5 or earlier, no async support } decodeBasicAuthWithIso8859 = PropertyUtils.isTrue(bus.getProperty(DECODE_BASIC_AUTH_WITH_ISO8859)); initConfig(); }
/** * Constructor * * @param b the associated Bus * @param ci the associated conduit initiator * @param ei the endpoint info of the destination * @param dp true for adding the default port if it is missing * @throws IOException */ public AbstractHTTPDestination(Bus b, DestinationRegistry registry, EndpointInfo ei, String path, boolean dp) throws IOException { super(b, getTargetReference(getAddressValue(ei, dp), b), ei); this.bus = b; this.registry = registry; this.path = path; try { ServletRequest.class.getMethod("isAsyncSupported"); isServlet3 = true; } catch (Throwable t) { //servlet 2.5 or earlier, no async support } initConfig(); }
/** * Constructor * * @param b the associated Bus * @param registry the destination registry * @param ei the endpoint info of the destination * @param path the path * @param dp true for adding the default port if it is missing * @throws IOException */ public AbstractHTTPDestination(Bus b, DestinationRegistry registry, EndpointInfo ei, String path, boolean dp) throws IOException { super(b, getTargetReference(getAddressValue(ei, dp), b), ei); this.bus = b; this.registry = registry; this.path = path; try { ServletRequest.class.getMethod("isAsyncSupported"); isServlet3 = true; } catch (Throwable t) { //servlet 2.5 or earlier, no async support } decodeBasicAuthWithIso8859 = PropertyUtils.isTrue(bus.getProperty(DECODE_BASIC_AUTH_WITH_ISO8859)); initConfig(); }