public String getLocalName() { if (_dns) return _endp==null?null:_endp.getLocalHost(); return _endp==null?null:_endp.getLocalAddr(); }
public int getLocalPort() { return _endp==null?0:_endp.getLocalPort(); }
public String getRemoteHost() { if (_dns) return _endp==null?null:_endp.getRemoteHost(); return _endp==null?null:_endp.getRemoteAddr(); }
if (written<=0) break; else if (_endp.isBufferingOutput()) _endp.flush(); if (_endp.isBufferingOutput()) _endp.flush(); if (!_endp.isBufferingOutput()) no_progress=0; _endp.close(); throw e; more_in_buffer = _parser.isMoreInBuffer() || _endp.isBufferingInput(); if (_parser.isComplete() && _generator.isComplete() && !_endp.isBufferingOutput())
void blockForOutput() throws IOException { if (_generator._endp.isBlocking()) { try { flush(); } catch(IOException e) { _generator._endp.close(); throw e; } } else { if (!_generator._endp.blockWritable(_maxIdleTime)) { _generator._endp.close(); throw new EofException("timeout"); } _generator.flush(); } }
else if (_endp.isBlocking()) _endp.close(); throw e; if (!_endp.blockReadable(_maxIdleTime)) _endp.close(); throw new EofException("timeout");
throw new IllegalStateException(); // should never happen! case 6: len = _endp.flush(_header, _buffer, null); break; case 5: len = _endp.flush(_header, _content, null); break; case 4: len = _endp.flush(_header); break; case 3: throw new IllegalStateException(); // should never happen! case 2: len = _endp.flush(_buffer); break; case 1: len = _endp.flush(_content); break; case 0: _state = STATE_END; if (_state==STATE_END && _close && _status!=100) _endp.close();
filled=_endp.fill(_buffer);
public String getLocalAddr() { return _endp==null?null:_endp.getLocalAddr(); }
public String getRemoteAddr() { return _endp==null?null:_endp.getRemoteAddr(); }
filled=_endp.fill(_buffer); if (filled>0) total_filled+=filled;
public int getServerPort() { if (_port<=0) { if (_serverName==null) getServerName(); if (_port<=0) { if (_serverName!=null && _uri!=null) _port = _uri.getPort(); else _port = _endp==null?0:_endp.getLocalPort(); } } if (_port<=0) { if (getScheme().equalsIgnoreCase(URIUtil.HTTPS)) return 443; return 80; } return _port; }