/** * Returns the request socket. * * @return The request socket. */ private SocketChannel getSocket() { return (SocketChannel) this.request .getAttribute(SimpleServer.PROPERTY_SOCKET); }
/** * Returns the SSL engine. * * @return the SSL engine */ private SSLEngine getSslEngine() { return (SSLEngine) this.request .getAttribute(SimpleServer.PROPERTY_ENGINE); }
/** * This is used as a shortcut for acquiring attributes for the * response. This avoids acquiring the attribute <code>Map</code> * in order to retrieve the attribute directly from that object. * The attributes contain data specific to the response. * * @param key this is the key of the attribute to acquire * * @return this returns the attribute for the specified name */ public Object getAttribute(Object key) { return request.getAttribute(key); }
/** * This is used as a shortcut for acquiring attributes for the * response. This avoids acquiring the attribute <code>Map</code> * in order to retrieve the attribute directly from that object. * The attributes contain data specific to the response. * * @param key this is the key of the attribute to acquire * * @return this returns the attribute for the specified name */ public Object getAttribute(Object key) { return request.getAttribute(key); }
/** * This is used as a shortcut for acquiring attributes for the * response. This avoids acquiring the attribute <code>Map</code> * in order to retrieve the attribute directly from that object. * The attributes contain data specific to the response. * * @param key this is the key of the attribute to acquire * * @return this returns the attribute for the specified name */ public Object getAttribute(Object key) { return request.getAttribute(key); }
private boolean subscriberClientStillConnected() { try { subscriberConnectedReadBuffer.clear(); int read =((SocketChannel)subscriberRequest.getAttribute("fixd-socket")) .read(subscriberConnectedReadBuffer); if (read == -1) return false; } catch (IOException e) { return false; } return true; }