System.out.println("[username = " + endpoint.auth().userName() + ", password = " + endpoint.auth().password() + "]"); if (endpoint.will() != null) { System.out.println("[will flag = " + endpoint.will().isWillFlag() + " topic = " + endpoint.will().willTopic() + " msg = " + endpoint.will().willMessage() + " QoS = " + endpoint.will().willQos() + " isRetain = " + endpoint.will().isWillRetain() + "]");
/** * @return the Will information as provided by the remote MQTT client */ public MqttWill will() { if (cached_4 != null) { return cached_4; } MqttWill ret = delegate.will(); cached_4 = ret; return ret; }
/** * @return the Will information as provided by the remote MQTT client */ public MqttWill will() { if (cached_4 != null) { return cached_4; } MqttWill ret = delegate.will(); cached_4 = ret; return ret; }
/** * @return the Will information as provided by the remote MQTT client */ public MqttWill will() { if (cached_2 != null) { return cached_2; } MqttWill ret = MqttWill.newInstance(delegate.will()); cached_2 = ret; return ret; }
/** * Invoked when a client sends its <em>CONNECT</em> packet. * <p> * Authenticates the client (if required) and registers handlers for processing messages published by the client. * * @param endpoint The MQTT endpoint representing the client. */ final void handleEndpointConnection(final MqttEndpoint endpoint) { LOG.debug("connection request from client [client-id: {}]", endpoint.clientIdentifier()); final Span span = tracer.buildSpan("CONNECT") .ignoreActiveSpan() .withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER) .withTag(Tags.COMPONENT.getKey(), getTypeName()) .withTag(TracingHelper.TAG_CLIENT_ID.getKey(), endpoint.clientIdentifier()) .start(); if (!endpoint.isCleanSession()) { span.log("ignoring client's intent to resume existing session"); } if (endpoint.will() != null) { span.log("ignoring client's last will"); } isConnected() .compose(v -> handleConnectionRequest(endpoint, span)) .setHandler(result -> handleConnectionRequestResult(endpoint, span, result)); }
/** * Invoked when a client sends its <em>CONNECT</em> packet. * <p> * Authenticates the client (if required) and registers handlers for processing messages published by the client. * * @param endpoint The MQTT endpoint representing the client. */ final void handleEndpointConnection(final MqttEndpoint endpoint) { LOG.debug("connection request from client [client-id: {}]", endpoint.clientIdentifier()); final Span span = tracer.buildSpan("CONNECT") .ignoreActiveSpan() .withTag(Tags.SPAN_KIND.getKey(), Tags.SPAN_KIND_SERVER) .withTag(Tags.COMPONENT.getKey(), getTypeName()) .withTag(TracingHelper.TAG_CLIENT_ID.getKey(), endpoint.clientIdentifier()) .start(); if (!endpoint.isCleanSession()) { span.log("ignoring client's intent to resume existing session"); } if (endpoint.will() != null) { span.log("ignoring client's last will"); } isConnected() .compose(v -> handleConnectionRequest(endpoint, span)) .setHandler(result -> handleConnectionRequestResult(endpoint, span, result)); }