if ("connector".equals(protocol)) {
// Strip initial slash
String resourceName = uri.getPath().substring(1);
- return registerConnecctorResource(resourceName, context);
+ return registerConnectorResource(resourceName, context);
}
if (protocol != null || uri.getHost() != null) {
}
// Bare path interpreted as connector resource
- return registerConnecctorResource(resourceUri, context);
+ return registerConnectorResource(resourceUri, context);
} catch (URISyntaxException e) {
getLogger().log(Level.WARNING,
"Could not parse resource url " + resourceUri, e);
}
}
- private String registerConnecctorResource(String name, Class<?> context) {
+ private String registerConnectorResource(String name, Class<?> context) {
synchronized (connectorResourceContexts) {
// Add to map of names accepted by serveConnectorResource
if (connectorResourceContexts.containsKey(name)) {
// registered in the map
if (context == null) {
getLogger().warning(
- "Connector resource request for unkown resource rejected: "
+ "Connector resource request for unknown resource rejected: "
+ resourceName);
response.sendError(HttpServletResponse.SC_NOT_FOUND, resourceName);
return;