jdk/src/share/classes/java/net/URLConnection.java
changeset 14014 da3648e13e67
parent 10596 39b3a979e600
child 14342 8435a30053c1
equal deleted inserted replaced
14013:10f55dd791e1 14014:da3648e13e67
  1239 
  1239 
  1240     private static Hashtable<String, ContentHandler> handlers = new Hashtable<>();
  1240     private static Hashtable<String, ContentHandler> handlers = new Hashtable<>();
  1241 
  1241 
  1242     /**
  1242     /**
  1243      * Gets the Content Handler appropriate for this connection.
  1243      * Gets the Content Handler appropriate for this connection.
  1244      * @param connection the connection to use.
       
  1245      */
  1244      */
  1246     synchronized ContentHandler getContentHandler()
  1245     synchronized ContentHandler getContentHandler()
  1247     throws UnknownServiceException
  1246         throws UnknownServiceException
  1248     {
  1247     {
  1249         String contentType = stripOffParameters(getContentType());
  1248         String contentType = stripOffParameters(getContentType());
  1250         ContentHandler handler = null;
  1249         ContentHandler handler = null;
  1251         if (contentType == null)
  1250         if (contentType == null)
  1252             throw new UnknownServiceException("no content-type");
  1251             throw new UnknownServiceException("no content-type");