XmlConfiguration$JettyXmlConfiguration.configure
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.eclipse.jetty.xml.XmlConfiguration$JettyXmlConfiguration.configure (Showing top 20 results out of 315)

  • Common ways to obtain XmlConfiguration$JettyXmlConfiguration
private void myMethod () {
XmlConfiguration$JettyXmlConfiguration x =
  • new JettyXmlConfiguration()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jetty.aggregate/jetty-webapp

public Object configure(Object obj) throws Exception
{
  // Check the class of the object
  Class<?> oClass = nodeClass(_root);
  if (oClass != null && !oClass.isInstance(obj))
  {
    String loaders = (oClass.getClassLoader()==obj.getClass().getClassLoader())?"":"Object Class and type Class are from different loaders.";
    throw new IllegalArgumentException("Object of class '"+obj.getClass().getCanonicalName()+"' is not of type '" + oClass.getCanonicalName()+"'. "+loaders);
  }
  configure(obj,_root,0);
  return obj;
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

public Object configure(Object obj) throws Exception
{
  // Check the class of the object
  Class<?> oClass = nodeClass(_config);
  if (oClass != null && !oClass.isInstance(obj))
  {
    String loaders = (oClass.getClassLoader()==obj.getClass().getClassLoader())?"":"Object Class and type Class are from different loaders.";
    throw new IllegalArgumentException("Object of class '"+obj.getClass().getCanonicalName()+"' is not of type '" + oClass.getCanonicalName()+"'. "+loaders+" in "+_url);
  }
  configure(obj,_config,0);
  return obj;
}
origin: com.ovea.tajin.server/tajin-server-jetty9

public Object configure(Object obj) throws Exception
{
  // Check the class of the object
  Class<?> oClass = nodeClass(_config);
  if (oClass != null && !oClass.isInstance(obj))
  {
    String loaders = (oClass.getClassLoader()==obj.getClass().getClassLoader())?"":"Object Class and type Class are from different loaders.";
    throw new IllegalArgumentException("Object of class '"+obj.getClass().getCanonicalName()+"' is not of type '" + oClass.getCanonicalName()+"'. "+loaders+" in "+_url);
  }
  configure(obj,_config,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-all-server

private Object refObj(Object obj, XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  obj = _configuration.getIdMap().get(id);
  if (obj == null)
    throw new IllegalStateException("No object for id=" + id);
  configure(obj,node,0);
  return obj;
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

private Object refObj(Object obj, XmlParser.Node node) throws Exception
{
  String refid = node.getAttribute("refid");
  if (refid==null)
    refid = node.getAttribute("id");
  obj = _idMap.get(refid);
  if (obj == null && node.size()>0)
    throw new IllegalStateException("No object for refid=" + refid);
  configure(obj,node,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-all-server

public Object configure(Object obj) throws Exception
{
  // Check the class of the object
  Class<?> oClass = nodeClass(_root);
  if (oClass != null && !oClass.isInstance(obj))
  {
    String loaders = (oClass.getClassLoader()==obj.getClass().getClassLoader())?"":"Object Class and type Class are from different loaders.";
    throw new IllegalArgumentException("Object of class '"+obj.getClass().getCanonicalName()+"' is not of type '" + oClass.getCanonicalName()+"'. "+loaders);
  }
  configure(obj,_root,0);
  return obj;
}
origin: jenkinsci/winstone

private Object refObj(Object obj, XmlParser.Node node) throws Exception
{
  String refid = node.getAttribute("refid");
  if (refid==null)
    refid = node.getAttribute("id");
  obj = _configuration.getIdMap().get(refid);
  if (obj == null && node.size()>0)
    throw new IllegalStateException("No object for refid=" + refid);
  configure(obj,node,0);
  return obj;
}
origin: com.ovea.tajin.server/tajin-server-jetty9

private Object refObj(Object obj, XmlParser.Node node) throws Exception
{
  String refid = node.getAttribute("refid");
  if (refid==null)
    refid = node.getAttribute("id");
  obj = _idMap.get(refid);
  if (obj == null && node.size()>0)
    throw new IllegalStateException("No object for refid=" + refid);
  configure(obj,node,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-all-server

public Object configure() throws Exception
{
  Class<?> oClass = nodeClass(_root);
  String id = _root.getAttribute("id");
  Object obj = id == null?null:_configuration.getIdMap().get(id);
  if (obj == null && oClass != null)
  {
    obj = oClass.newInstance();
    _configuration.initializeDefaults(obj);
  }
  if (oClass != null && !oClass.isInstance(obj))
    throw new ClassCastException(oClass.toString());
  configure(obj,_root,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-webapp

public Object configure() throws Exception
{
  Class<?> oClass = nodeClass(_root);
  String id = _root.getAttribute("id");
  Object obj = id == null?null:_configuration.getIdMap().get(id);
  if (obj == null && oClass != null)
  {
    obj = oClass.newInstance();
    _configuration.initializeDefaults(obj);
  }
  if (oClass != null && !oClass.isInstance(obj))
    throw new ClassCastException(oClass.toString());
  configure(obj,_root,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-plus

public Object configure() throws Exception
{
  Class<?> oClass = nodeClass(_root);
  String id = _root.getAttribute("id");
  Object obj = id == null?null:_configuration.getIdMap().get(id);
  if (obj == null && oClass != null)
  {
    obj = oClass.newInstance();
    _configuration.initializeDefaults(obj);
  }
  if (oClass != null && !oClass.isInstance(obj))
    throw new ClassCastException(oClass.toString());
  configure(obj,_root,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-all-server

private Object propertyObj(XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  String name = node.getAttribute("name");
  String defaultValue = node.getAttribute("default");
  Object prop;
  Map<String,String> property_map=_configuration.getProperties();
  if (property_map != null && property_map.containsKey(name))
    prop = property_map.get(name);
  else
    prop = defaultValue;
  if (id != null)
    _configuration.getIdMap().put(id,prop);
  if (prop != null)
    configure(prop,node,0);
  return prop;
}
origin: com.ovea.tajin.server/tajin-server-jetty9

private Object propertyObj(XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  String name = node.getAttribute("name");
  String defaultValue = node.getAttribute("default");
  Object prop;
  if (_propertyMap != null && _propertyMap.containsKey(name))
    prop = _propertyMap.get(name);
  else
    prop = defaultValue;
  if (id != null)
    _idMap.put(id,prop);
  if (prop != null)
    configure(prop,node,0);
  return prop;
}
origin: com.ovea.tajin.servers/tajin-server-jetty9

private Object propertyObj(XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  String name = node.getAttribute("name");
  String defaultValue = node.getAttribute("default");
  Object prop;
  if (_propertyMap != null && _propertyMap.containsKey(name))
    prop = _propertyMap.get(name);
  else
    prop = defaultValue;
  if (id != null)
    _idMap.put(id,prop);
  if (prop != null)
    configure(prop,node,0);
  return prop;
}
origin: org.eclipse.jetty.aggregate/jetty-plus

private Object refObj(Object obj, XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  obj = _configuration.getIdMap().get(id);
  if (obj == null)
    throw new IllegalStateException("No object for id=" + id);
  configure(obj,node,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-webapp

private Object propertyObj(XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  String name = node.getAttribute("name");
  String defaultValue = node.getAttribute("default");
  Object prop;
  Map<String,String> property_map=_configuration.getProperties();
  if (property_map != null && property_map.containsKey(name))
    prop = property_map.get(name);
  else
    prop = defaultValue;
  if (id != null)
    _configuration.getIdMap().put(id,prop);
  if (prop != null)
    configure(prop,node,0);
  return prop;
}
origin: jenkinsci/winstone

@Override
public Object configure(Object obj) throws Exception
{
  // Check the class of the object
  Class<?> oClass = nodeClass(_root);
  if (oClass != null && !oClass.isInstance(obj))
  {
    String loaders = (oClass.getClassLoader()==obj.getClass().getClassLoader())?"":"Object Class and type Class are from different loaders.";
    throw new IllegalArgumentException("Object of class '"+obj.getClass().getCanonicalName()+"' is not of type '" + oClass.getCanonicalName()+"'. "+loaders+" in "+_url);
  }
  String id=_root.getAttribute("id");
  if (id!=null)
    _configuration.getIdMap().put(id,obj);
  configure(obj,_root,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-webapp

private Object refObj(Object obj, XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  obj = _configuration.getIdMap().get(id);
  if (obj == null)
    throw new IllegalStateException("No object for id=" + id);
  configure(obj,node,0);
  return obj;
}
origin: org.eclipse.jetty.aggregate/jetty-plus

private Object propertyObj(XmlParser.Node node) throws Exception
{
  String id = node.getAttribute("id");
  String name = node.getAttribute("name");
  String defaultValue = node.getAttribute("default");
  Object prop;
  Map<String,String> property_map=_configuration.getProperties();
  if (property_map != null && property_map.containsKey(name))
    prop = property_map.get(name);
  else
    prop = defaultValue;
  if (id != null)
    _configuration.getIdMap().put(id,prop);
  if (prop != null)
    configure(prop,node,0);
  return prop;
}
origin: org.eclipse.jetty.aggregate/jetty-plus

public Object configure(Object obj) throws Exception
{
  // Check the class of the object
  Class<?> oClass = nodeClass(_root);
  if (oClass != null && !oClass.isInstance(obj))
  {
    String loaders = (oClass.getClassLoader()==obj.getClass().getClassLoader())?"":"Object Class and type Class are from different loaders.";
    throw new IllegalArgumentException("Object of class '"+obj.getClass().getCanonicalName()+"' is not of type '" + oClass.getCanonicalName()+"'. "+loaders);
  }
  configure(obj,_root,0);
  return obj;
}
org.eclipse.jetty.xmlXmlConfiguration$JettyXmlConfigurationconfigure

Javadoc

Recursive configuration routine. This method applies the nested Set, Put, Call, etc. elements to the given object.

Popular methods of XmlConfiguration$JettyXmlConfiguration

  • <init>
  • call
  • convertArrayToArrayList
  • convertArrayToCollection
  • get
  • isTypeMatchingClass
  • itemValue
  • newArray
  • newMap
  • newObj
  • nodeClass
  • propertyObj
  • nodeClass,
  • propertyObj,
  • put,
  • refObj,
  • set,
  • value,
  • envObj,
  • systemPropertyObj

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getSharedPreferences (Context)
  • getExternalFilesDir (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Join (org.hibernate.mapping)
  • Runner (org.openjdk.jmh.runner)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)