equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright 2001-2007 Sun Microsystems, Inc. All Rights Reserved. |
2 * Copyright 2001-2008 Sun Microsystems, Inc. All Rights Reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Sun designates this |
7 * published by the Free Software Foundation. Sun designates this |
516 |
516 |
517 protected void putInKeepAliveCache() { |
517 protected void putInKeepAliveCache() { |
518 kac.put(url, sslSocketFactory, this); |
518 kac.put(url, sslSocketFactory, this); |
519 } |
519 } |
520 |
520 |
|
521 /* |
|
522 * Close an idle connection to this URL (if it exists in the cache). |
|
523 */ |
|
524 public void closeIdleConnection() { |
|
525 HttpClient http = (HttpClient) kac.get(url, sslSocketFactory); |
|
526 if (http != null) { |
|
527 http.closeServer(); |
|
528 } |
|
529 } |
|
530 |
521 /** |
531 /** |
522 * Returns the cipher suite in use on this connection. |
532 * Returns the cipher suite in use on this connection. |
523 */ |
533 */ |
524 String getCipherSuite() { |
534 String getCipherSuite() { |
525 return session.getCipherSuite(); |
535 return session.getCipherSuite(); |