"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/impl/conn/DefaultManagedHttpClientConnection.java" between
httpcomponents-client-4.5.6-src.tar.gz and httpcomponents-client-4.5.7-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

DefaultManagedHttpClientConnection.java  (httpcomponents-client-4.5.6-src):DefaultManagedHttpClientConnection.java  (httpcomponents-client-4.5.7-src)
skipping to change at line 65 skipping to change at line 65
public class DefaultManagedHttpClientConnection extends DefaultBHttpClientConnec tion public class DefaultManagedHttpClientConnection extends DefaultBHttpClientConnec tion
implements ManagedHttpClientConnection, HttpCon text { implements ManagedHttpClientConnection, HttpCon text {
private final String id; private final String id;
private final Map<String, Object> attributes; private final Map<String, Object> attributes;
private volatile boolean shutdown; private volatile boolean shutdown;
public DefaultManagedHttpClientConnection( public DefaultManagedHttpClientConnection(
final String id, final String id,
final int buffersize, final int bufferSize,
final int fragmentSizeHint, final int fragmentSizeHint,
final CharsetDecoder chardecoder, final CharsetDecoder charDecoder,
final CharsetEncoder charencoder, final CharsetEncoder charEncoder,
final MessageConstraints constraints, final MessageConstraints constraints,
final ContentLengthStrategy incomingContentStrategy, final ContentLengthStrategy incomingContentStrategy,
final ContentLengthStrategy outgoingContentStrategy, final ContentLengthStrategy outgoingContentStrategy,
final HttpMessageWriterFactory<HttpRequest> requestWriterFactory, final HttpMessageWriterFactory<HttpRequest> requestWriterFactory,
final HttpMessageParserFactory<HttpResponse> responseParserFactory) { final HttpMessageParserFactory<HttpResponse> responseParserFactory) {
super(buffersize, fragmentSizeHint, chardecoder, charencoder, super(bufferSize, fragmentSizeHint, charDecoder, charEncoder,
constraints, incomingContentStrategy, outgoingContentStrategy, constraints, incomingContentStrategy, outgoingContentStrategy,
requestWriterFactory, responseParserFactory); requestWriterFactory, responseParserFactory);
this.id = id; this.id = id;
this.attributes = new ConcurrentHashMap<String, Object>(); this.attributes = new ConcurrentHashMap<String, Object>();
} }
public DefaultManagedHttpClientConnection( public DefaultManagedHttpClientConnection(
final String id, final String id,
final int buffersize) { final int bufferSize) {
this(id, buffersize, buffersize, null, null, null, null, null, null, nul this(id, bufferSize, bufferSize, null, null, null, null, null, null, nul
l); l);
} }
@Override @Override
public String getId() { public String getId() {
return this.id; return this.id;
} }
@Override @Override
public void shutdown() throws IOException { public void shutdown() throws IOException {
this.shutdown = true; this.shutdown = true;
skipping to change at line 131 skipping to change at line 131
} }
@Override @Override
public Socket getSocket() { public Socket getSocket() {
return super.getSocket(); return super.getSocket();
} }
@Override @Override
public SSLSession getSSLSession() { public SSLSession getSSLSession() {
final Socket socket = super.getSocket(); final Socket socket = super.getSocket();
if (socket instanceof SSLSocket) { return socket instanceof SSLSocket ? ((SSLSocket) socket).getSession() :
return ((SSLSocket) socket).getSession(); null;
} else {
return null;
}
} }
} }
 End of changes. 5 change blocks. 
12 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)