equal
deleted
inserted
replaced
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"); |