/** * Gets the default endpoint for coaps for implicit use by clients. By * default, the endpoint has a single-threaded executor and is started. It * is possible to send requests over the endpoint and receive responses. It * is not possible to receive requests by default. If a request arrives at * the endpoint, the {@link ClientMessageDeliverer} rejects it. To receive * requests, the endpoint must be added to an instance of * {@link CoapServer}. Be careful with stopping or destroying the default * endpoint as it affects all messages that are supposed to be sent over it. * * @return the default endpoint */ public synchronized Endpoint getDefaultSecureEndpoint() { try { if (default_secure_endpoint == null) { createDefaultSecureEndpoint(); } } catch (Exception e) { LOGGER.log(Level.SEVERE, "Exception while getting the default secure endpoint", e); } return default_secure_endpoint; }
/** * Gets the default endpoint for coaps for implicit use by clients. * By default, the endpoint has a single-threaded executor and is started. * It is possible to send requests over the endpoint and receive responses. * It is not possible to receive requests by default. If a request arrives * at the endpoint, the {@link ClientMessageDeliverer} rejects it. To * receive requests, the endpoint must be added to an instance of * {@link CoapServer}. Be careful with stopping or destroying the default * endpoint as it affects all messages that are supposed to be sent over it. * * @return the default endpoint */ public synchronized Endpoint getDefaultSecureEndpoint() { try { if (default_secure_endpoint == null) { createDefaultSecureEndpoint(); } } catch (Exception e) { LOGGER.log(Level.SEVERE, "Exception while getting the default secure endpoint", e); } return default_secure_endpoint; }