public NettyHttpOperationFailedException(String uri, int statusCode, String statusText, String location, HttpResponse response) { // sanitize uri so we do not show sensitive information such as passwords super("Netty HTTP operation failed invoking " + URISupport.sanitizeUri(uri) + " with statusCode: " + statusCode + (location != null ? ", redirectLocation: " + location : "")); this.uri = URISupport.sanitizeUri(uri); this.statusCode = statusCode; this.statusText = statusText; this.redirectLocation = location; this.response = response; }
public HttpOperationFailedException(String uri, int statusCode, String statusText, String location, Map<String, String> responseHeaders, String responseBody) { // sanitize uri so we do not show sensitive information such as passwords super("HTTP operation failed invoking " + URISupport.sanitizeUri(uri) + " with statusCode: " + statusCode + (location != null ? ", redirectLocation: " + location : "")); this.uri = URISupport.sanitizeUri(uri); this.statusCode = statusCode; this.statusText = statusText; this.redirectLocation = location; this.responseHeaders = responseHeaders; this.responseBody = responseBody; }
ZipkinClientRequestAdapter(ZipkinTracer eventNotifier, Endpoint endpoint) { this.eventNotifier = eventNotifier; this.spanName = URISupport.sanitizeUri(endpoint.getEndpointKey()).toLowerCase(Locale.ROOT); this.url = URISupport.sanitizeUri(endpoint.getEndpointUri()); }
ZipkinClientResponseAdaptor(ZipkinTracer eventNotifier, Endpoint endpoint) { this.eventNotifier = eventNotifier; this.url = URISupport.sanitizeUri(endpoint.getEndpointUri()); }
ZipkinServerRequestAdapter(ZipkinTracer eventNotifier, Exchange exchange) { this.eventNotifier = eventNotifier; this.endpoint = exchange.getFromEndpoint(); this.spanName = URISupport.sanitizeUri(endpoint.getEndpointKey()).toLowerCase(Locale.ROOT); this.url = URISupport.sanitizeUri(endpoint.getEndpointUri()); }
@Override public String toString() { if (ftpConsumerToString == null) { ftpConsumerToString = "FtpConsumer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return ftpConsumerToString; } }
@Override public void run() { try { doStart(); } catch (Exception e) { LOG.error("An unrecoverable exception has occurred while starting the JMX consumer" + "for endpoint {}", URISupport.sanitizeUri(mJmxEndpoint.getEndpointUri()), e); } } };
@Override public String toString() { if (hipchatConsumerToString == null) { hipchatConsumerToString = "HipchatConsumer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return hipchatConsumerToString; } }
@Override public String toString() { if (remoteFileProducerToString == null) { remoteFileProducerToString = "RemoteFileProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return remoteFileProducerToString; } }
@Override public String toString() { if (deleteObjectConsumerToString == null) { deleteObjectConsumerToString = "S3Consumer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return deleteObjectConsumerToString; } }
@Override public String toString() { if (DeleteObjectProducerToString == null) { DeleteObjectProducerToString = "DeleteObjectProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return DeleteObjectProducerToString; }
@Override public String toString() { if (sftpConsumerToString == null) { sftpConsumerToString = "SftpConsumer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return sftpConsumerToString; }
ZipkinServerResponseAdapter(ZipkinTracer eventNotifier, Exchange exchange) { this.eventNotifier = eventNotifier; this.endpoint = exchange.getFromEndpoint(); this.url = URISupport.sanitizeUri(endpoint.getEndpointUri()); }
@Override public String toString() { if (hipchatProducerToString == null) { hipchatProducerToString = "HipchatProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; } return hipchatProducerToString; } }
@Override public String toString() { return "StorageQueueProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; }
@Override public String toString() { return "StorageBlobProducer[" + URISupport.sanitizeUri(getEndpoint().getEndpointUri()) + "]"; }
/** * Creates a new AS/400 data queue endpoint using the specified connection * pool. */ protected Jt400Endpoint(String endpointUri, Jt400Component component, AS400ConnectionPool connectionPool) throws CamelException { super(endpointUri, component); ObjectHelper.notNull(connectionPool, "connectionPool"); try { configuration = new Jt400Configuration(endpointUri, connectionPool); } catch (URISyntaxException e) { throw new CamelException("Unable to parse URI for " + URISupport.sanitizeUri(endpointUri), e); } }
@Override protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception { // grab the regular query parameters Map<String, String> options = buildEndpointOptions(remaining, parameters); // create the uri of the base component String delegateUri = catalog.asEndpointUri(componentSchemeAlias.orElse(componentScheme), options, false); Endpoint delegate = getCamelContext().getEndpoint(delegateUri); LOGGER.info("Connector resolved: {} -> {}", URISupport.sanitizeUri(uri), URISupport.sanitizeUri(delegateUri)); ComponentProxyEndpoint answer = new ComponentProxyEndpoint(uri, this, delegate); answer.setBeforeProducer(getBeforeProducer()); answer.setAfterProducer(getAfterProducer()); answer.setBeforeConsumer(getBeforeConsumer()); answer.setAfterConsumer(getAfterConsumer()); // clean-up parameters so that validation won't fail later on // in DefaultConnectorComponent.validateParameters() parameters.clear(); return answer; }
@Override public void pre(Span span, Exchange exchange, Endpoint endpoint) { String scheme = getComponentName(endpoint); span.setTag(Tags.COMPONENT.getKey(), CAMEL_COMPONENT + scheme); // Including the endpoint URI provides access to any options that may // have been provided, for // subsequent analysis span.setTag("camel.uri", URISupport.sanitizeUri(endpoint.getEndpointUri())); }
@Override protected void doStart() throws Exception { String url = getEndpoint().getUrl() + "?authUsername=" + getEndpoint().getUsername() + "&authPassword=" + getEndpoint().getPassword() + "&authMethod=Basic"; if (log.isInfoEnabled()) { log.info("Creating NetWeaverProducer using url: {}", URISupport.sanitizeUri(url)); } http = getEndpoint().getCamelContext().getEndpoint(url).createProducer(); ServiceHelper.startService(http); }