/** * This method is used to get the <code>Map</code> of attributes * by this pipeline. The attributes map is used to maintain details * about the connection. Information such as security credentials * to client details can be placed within the attribute map. * * @return this returns the map of attributes for this pipeline */ public Map getAttributes() { return socket.getAttributes(); }
/** * This method is used to get the <code>Map</code> of attributes * by this pipeline. The attributes map is used to maintain details * about the connection. Information such as security credentials * to client details can be placed within the attribute map. * * @return this returns the map of attributes for this pipeline */ public Map getAttributes() { return socket.getAttributes(); }
/** * This method is used to get the <code>Map</code> of attributes * by this pipeline. The attributes map is used to maintain details * about the connection. Information such as security credentials * to client details can be placed within the attribute map. * * @return this returns the map of attributes for this pipeline */ public Map getAttributes() { return socket.getAttributes(); }
@SuppressWarnings({"rawtypes", "unchecked"}) public void process(Socket socket) throws IOException { Map atts = socket.getAttributes(); SocketChannel channel = socket.getChannel(); atts.put("fixd-socket", channel); server.process(socket); }
/** * Pass in the connection socket and add the engine to the pipeline * attributes. * * @param socket * the pipeline */ @SuppressWarnings("unchecked") public void process(Socket socket) throws IOException { final Map map = socket.getAttributes(); final SSLEngine engine = socket.getEngine(); final SocketChannel channel = socket.getChannel(); map.put(PROPERTY_ENGINE, engine); map.put(PROPERTY_SOCKET, channel); server.process(socket); }