/** * Returns the component's logger. * * @return The component's logger. */ private Logger getLogger() { return getComponent().getLogger(); }
/** * Constructor with the representation of the XML configuration file. * * @param xmlConfigRepresentation * The representation of the XML configuration file. */ public Component(Representation xmlConfigRepresentation) { this(); if (xmlConfigRepresentation != null) { parseXmlConfiguration(xmlConfigRepresentation); } else { getLogger().log(Level.WARNING, "Unable to parse the Component XML configuration."); } }
/** * Constructor with the representation of the XML configuration file. * * @param xmlConfigRepresentation * The representation of the XML configuration file. * @deprecated Use XML support in the Spring extension instead. */ @Deprecated public Component(Representation xmlConfigRepresentation) { this(); if (xmlConfigRepresentation != null) { new org.restlet.engine.component.ComponentXmlParser(this, xmlConfigRepresentation).parse(); } else { getLogger().log(Level.WARNING, "Unable to parse the Component XML configuration."); } }
.getNodeValue(), uriPattern, bDefault); } else { getLogger() .log( Level.WARNING,
getContext().createChildContext()); } catch (NoSuchMethodException e) { getLogger() .log( Level.FINE, getLogger().log( Level.WARNING, "Couldn't find the target class. Please check that your classpath includes " getLogger() .log( Level.WARNING, + targetClassName, e); } catch (IllegalAccessException e) { getLogger() .log( Level.WARNING, + targetClassName, e); } catch (NoSuchMethodException e) { getLogger() .log( Level.WARNING, + targetClassName, e); } catch (InvocationTargetException e) { getLogger()
/** * Constructor with the reference to the XML configuration file. * * @param xmlConfigRef * The URI reference to the XML configuration file. * @deprecated Use XML support in the Spring extension instead. */ @Deprecated public Component(Reference xmlConfigRef) { this(); // Get the representation of the configuration file. Representation xmlConfigRepresentation = null; if (xmlConfigRef != null) { ClientResource cr = new ClientResource(xmlConfigRef); xmlConfigRepresentation = cr.get(); if (xmlConfigRepresentation != null) { new org.restlet.engine.component.ComponentXmlParser(this, xmlConfigRepresentation).parse(); } else { getLogger().log( Level.WARNING, "Unable to get the Component XML configuration located at this URI: " + xmlConfigRef); } } }
getLogger() .log( Level.WARNING, getLogger().log( Level.WARNING, "Couldn't find the target class. Please check that your classpath includes " + targetClassName, e); } catch (InstantiationException e) { getLogger() .log( Level.WARNING, + targetClassName, e); } catch (IllegalAccessException e) { getLogger() .log( Level.WARNING, + targetClassName, e); } catch (NoSuchMethodException e) { getLogger() .log( Level.WARNING, + targetClassName, e); } catch (InvocationTargetException e) { getLogger() .log(
parseXmlConfiguration(xmlConfigRepresentation); } else { getLogger().log( Level.WARNING, "Unable to get the Component XML configuration located at this URI: "