@Override public void shutdownOutput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownOutput(); else shutdownSocketOutput(); }
@Override public void shutdownInput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownInput(); else shutdownSocketInput(); }
public final boolean isClosed() { return !isOpen(); }
/** * @see org.eclipse.jetty.io.bio.StreamEndPoint#setMaxIdleTime(int) */ @Override public void setMaxIdleTime(int timeMs) throws IOException { if (timeMs!=getMaxIdleTime()) _socket.setSoTimeout(timeMs>0?timeMs:0); super.setMaxIdleTime(timeMs); }
/** * */ public SocketEndPoint(Socket socket) throws IOException { super(socket.getInputStream(),socket.getOutputStream()); _socket=socket; _local=(InetSocketAddress)_socket.getLocalSocketAddress(); _remote=(InetSocketAddress)_socket.getRemoteSocketAddress(); super.setMaxIdleTime(_socket.getSoTimeout()); }
@Override public boolean isInputShutdown() { if (_socket instanceof SSLSocket) return super.isInputShutdown(); return _socket.isClosed() || _socket.isInputShutdown(); }
@Override public boolean isOutputShutdown() { if (_socket instanceof SSLSocket) return super.isOutputShutdown(); return _socket.isClosed() || _socket.isOutputShutdown(); }
@Override public void shutdownOutput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownOutput(); else shutdownSocketOutput(); }
@Override public void shutdownInput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownInput(); else shutdownSocketInput(); }
/** * @see org.eclipse.jetty.io.bio.StreamEndPoint#setMaxIdleTime(int) */ @Override public void setMaxIdleTime(int timeMs) throws IOException { if (timeMs!=getMaxIdleTime()) _socket.setSoTimeout(timeMs>0?timeMs:0); super.setMaxIdleTime(timeMs); }
public final boolean isClosed() { return !isOpen(); }
/** * */ protected SocketEndPoint(Socket socket, int maxIdleTime) throws IOException { super(socket.getInputStream(),socket.getOutputStream()); _socket=socket; _local=(InetSocketAddress)_socket.getLocalSocketAddress(); _remote=(InetSocketAddress)_socket.getRemoteSocketAddress(); _socket.setSoTimeout(maxIdleTime>0?maxIdleTime:0); super.setMaxIdleTime(maxIdleTime); }
@Override public void shutdownOutput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownOutput(); else shutdownSocketOutput(); }
@Override public void shutdownInput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownInput(); else shutdownSocketInput(); }
/** * @see org.eclipse.jetty.io.bio.StreamEndPoint#setMaxIdleTime(int) */ @Override public void setMaxIdleTime(int timeMs) throws IOException { if (timeMs!=getMaxIdleTime()) _socket.setSoTimeout(timeMs>0?timeMs:0); super.setMaxIdleTime(timeMs); }
public final boolean isClosed() { return !isOpen(); }
@Override public void shutdownOutput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownOutput(); else shutdownSocketOutput(); }
@Override public void shutdownInput() throws IOException { if (_socket instanceof SSLSocket) super.shutdownInput(); else shutdownSocketInput(); }
/** * @see org.eclipse.jetty.io.bio.StreamEndPoint#setMaxIdleTime(int) */ @Override public void setMaxIdleTime(int timeMs) throws IOException { if (timeMs!=getMaxIdleTime()) _socket.setSoTimeout(timeMs>0?timeMs:0); super.setMaxIdleTime(timeMs); }
public final boolean isClosed() { return !isOpen(); }