congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ContentDeliveryConfigBuilder
Code IndexAdd Tabnine to your IDE (free)

How to use
ContentDeliveryConfigBuilder
in
org.milyn.delivery

Best Java code snippets using org.milyn.delivery.ContentDeliveryConfigBuilder (Showing top 20 results out of 315)

origin: org.virtuslab/milyn-smooks-core

configTable = getDeliveryConfigTable(applicationContext);
if(configTable == null) {
  synchronized(ContentDeliveryConfigBuilder.class) {
    configTable = getDeliveryConfigTable(applicationContext);
    if(configTable == null) {
      configTable = new LinkedHashMap<String, ContentDeliveryConfig>();
      ContentDeliveryConfigBuilder configBuilder = new ContentDeliveryConfigBuilder(profileSet, applicationContext);
      configBuilder.load();
      config = configBuilder.createConfig(extendedVisitorConfigMap);
      configTable.put(profileSet.getBaseProfile(), config);
origin: smooks/smooks

/**
 * Build the basic SmooksResourceConfiguration table from the list.
 * @param resourceConfigsList List of SmooksResourceConfigurations.
 */
private void buildSmooksResourceConfigurationTable(List resourceConfigsList) {
for (final Object resourceConfig : resourceConfigsList)
{
 addResourceConfiguration((SmooksResourceConfiguration) resourceConfig);
}
}
origin: smooks/smooks

buildSmooksResourceConfigurationTable(resourceConfigsList);
sortSmooksResourceConfigurations(resourceConfigTable);
expandSmooksResourceConfigurationTable();
sortSmooksResourceConfigurations(resourceConfigTable);
extractContentHandlers();
fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.HANDLERS_CREATED);
  logResourceConfig();
origin: org.milyn/milyn-smooks-core

filterType = getStreamFilterType();
configBuilderEvents.add(new ConfigBuilderEvent("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics()));
configBuilderEvents.add(new ConfigBuilderEvent("Using Stream Filter Type: " + filterType));
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
origin: org.milyn/milyn-smooks-all

/**
 * Public Constructor.
 * <p/>
 * The execution context is constructed within the context of a target profile and
 * application context.
 * @param targetProfile The target profile (base profile) for this context.
 * These parameters are not appended to the supplied requestURI.  This arg must be supplied, even if it's empty.
 * @param context The application context.
 * @param contentEncoding Character encoding to be used when parsing content.  Null
 * defaults to "UTF-8".
 * @param extendedVisitorConfigMap Preconfigured/extended Visitor Configuration Map.
 * @throws UnknownProfileMemberException Unknown target profile.
 */
public StandaloneExecutionContext(String targetProfile, ApplicationContext context, String contentEncoding, VisitorConfigMap extendedVisitorConfigMap) throws UnknownProfileMemberException {
  if(targetProfile == null) {
    throw new IllegalArgumentException("null 'targetProfile' arg in constructor call.");
  }
  if(context == null) {
    throw new IllegalArgumentException("null 'context' arg in constructor call.");
  }
  this.context = context;
  setContentEncoding(contentEncoding);
  targetProfileSet = context.getProfileStore().getProfileSet(targetProfile);
  deliveryConfig = ContentDeliveryConfigBuilder.getConfig(targetProfileSet, context, extendedVisitorConfigMap);
  isDefaultSerializationOn = ParameterAccessor.getBoolParameter(Filter.DEFAULT_SERIALIZATION_ON, true, deliveryConfig);
}
origin: smooks/smooks

  logger.debug("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics());
  filterType = StreamFilterType.SAX;
} else {
  throw new SmooksException("Ambiguous Resource Configuration set.  All Element Content Handlers must support processing on the SAX and/or DOM Filter:\n" + getResourceFilterCharacteristics());
origin: org.virtuslab/milyn-smooks-core

filterType = getStreamFilterType();
configBuilderEvents.add(new ConfigBuilderEvent("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics()));
configBuilderEvents.add(new ConfigBuilderEvent("Using Stream Filter Type: " + filterType));
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
origin: org.virtuslab/milyn-smooks-core

/**
 * Public Constructor.
 *
 * The execution context is constructed within the context of a target profile and
 * application context.
 * @param targetProfile The target profile (base profile) for this context.
 * These parameters are not appended to the supplied requestURI.  This arg must be supplied, even if it's empty.
 * @param context The application context.
 * @param contentEncoding Character encoding to be used when parsing content.  Null
 * defaults to "UTF-8".
 * @param extendedVisitorConfigMap Preconfigured/extended Visitor Configuration Map.
 * @throws UnknownProfileMemberException Unknown target profile.
 */
public StandaloneExecutionContext(String targetProfile, ApplicationContext context, String contentEncoding, VisitorConfigMap extendedVisitorConfigMap) throws UnknownProfileMemberException {
  if(targetProfile == null) {
    throw new IllegalArgumentException("null 'targetProfile' arg in constructor call.");
  }
  if(context == null) {
    throw new IllegalArgumentException("null 'context' arg in constructor call.");
  }
  this.context = context;
  setContentEncoding(contentEncoding);
  targetProfileSet = context.getProfileStore().getProfileSet(targetProfile);
  deliveryConfig = ContentDeliveryConfigBuilder.getConfig(targetProfileSet, context, extendedVisitorConfigMap);
  isDefaultSerializationOn = ParameterAccessor.getBoolParameter(Filter.DEFAULT_SERIALIZATION_ON, true, deliveryConfig);
}
origin: org.milyn/milyn-smooks-core

  logger.debug("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics());
  filterType = StreamFilterType.SAX;
} else {
  throw new SmooksException("Ambiguous Resource Configuration set.  All Element Content Handlers must support processing on the SAX and/or DOM Filter:\n" + getResourceFilterCharacteristics());
origin: org.milyn/milyn-smooks-all

buildSmooksResourceConfigurationTable(resourceConfigsList);
sortSmooksResourceConfigurations(resourceConfigTable);
expandSmooksResourceConfigurationTable();
sortSmooksResourceConfigurations(resourceConfigTable);
extractContentHandlers();
fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.HANDLERS_CREATED);
  logResourceConfig();
origin: smooks/smooks

configTable = getDeliveryConfigTable(applicationContext);
if(configTable == null) {
  synchronized(ContentDeliveryConfigBuilder.class) {
    configTable = getDeliveryConfigTable(applicationContext);
    if(configTable == null) {
      configTable = new LinkedHashMap<String, ContentDeliveryConfig>();
      ContentDeliveryConfigBuilder configBuilder = new ContentDeliveryConfigBuilder(profileSet, applicationContext);
      configBuilder.load();
      config = configBuilder.createConfig(extendedVisitorConfigMap);
      configTable.put(profileSet.getBaseProfile(), config);
origin: smooks/smooks

filterType = getStreamFilterType();
configBuilderEvents.add(new ConfigBuilderEvent("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics()));
configBuilderEvents.add(new ConfigBuilderEvent("Using Stream Filter Type: " + filterType));
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
origin: org.milyn/milyn-smooks-core

/**
 * Build the basic SmooksResourceConfiguration table from the list.
 * @param resourceConfigsList List of SmooksResourceConfigurations.
 */
private void buildSmooksResourceConfigurationTable(List resourceConfigsList) {
for (final Object resourceConfig : resourceConfigsList)
{
 addResourceConfiguration((SmooksResourceConfiguration) resourceConfig);
}
}
origin: smooks/smooks

/**
 * Public Constructor.
 * <p/>
 * The execution context is constructed within the context of a target profile and
 * application context.
 * @param targetProfile The target profile (base profile) for this context.
 * These parameters are not appended to the supplied requestURI.  This arg must be supplied, even if it's empty.
 * @param context The application context.
 * @param contentEncoding Character encoding to be used when parsing content.  Null
 * defaults to "UTF-8".
 * @param extendedVisitorConfigMap Preconfigured/extended Visitor Configuration Map.
 * @throws UnknownProfileMemberException Unknown target profile.
 */
public StandaloneExecutionContext(String targetProfile, ApplicationContext context, String contentEncoding, VisitorConfigMap extendedVisitorConfigMap) throws UnknownProfileMemberException {
  if(targetProfile == null) {
    throw new IllegalArgumentException("null 'targetProfile' arg in constructor call.");
  }
  if(context == null) {
    throw new IllegalArgumentException("null 'context' arg in constructor call.");
  }
  this.context = context;
  setContentEncoding(contentEncoding);
  targetProfileSet = context.getProfileStore().getProfileSet(targetProfile);
  deliveryConfig = ContentDeliveryConfigBuilder.getConfig(targetProfileSet, context, extendedVisitorConfigMap);
  isDefaultSerializationOn = ParameterAccessor.getBoolParameter(Filter.DEFAULT_SERIALIZATION_ON, true, deliveryConfig);
}
origin: org.milyn/milyn-smooks-all

  logger.debug("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics());
  filterType = StreamFilterType.SAX;
} else {
  throw new SmooksException("Ambiguous Resource Configuration set.  All Element Content Handlers must support processing on the SAX and/or DOM Filter:\n" + getResourceFilterCharacteristics());
origin: org.milyn/milyn-smooks-core

buildSmooksResourceConfigurationTable(resourceConfigsList);
sortSmooksResourceConfigurations(resourceConfigTable);
expandSmooksResourceConfigurationTable();
sortSmooksResourceConfigurations(resourceConfigTable);
extractContentHandlers();
fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.HANDLERS_CREATED);
  logResourceConfig();
origin: org.milyn/milyn-smooks-core

configTable = getDeliveryConfigTable(applicationContext);
if(configTable == null) {
  synchronized(ContentDeliveryConfigBuilder.class) {
    configTable = getDeliveryConfigTable(applicationContext);
    if(configTable == null) {
      configTable = new LinkedHashMap<String, ContentDeliveryConfig>();
      ContentDeliveryConfigBuilder configBuilder = new ContentDeliveryConfigBuilder(profileSet, applicationContext);
      configBuilder.load();
      config = configBuilder.createConfig(extendedVisitorConfigMap);
      configTable.put(profileSet.getBaseProfile(), config);
origin: org.milyn/milyn-smooks-all

filterType = getStreamFilterType();
configBuilderEvents.add(new ConfigBuilderEvent("SAX/DOM support characteristics of the Resource Configuration map:\n" + getResourceFilterCharacteristics()));
configBuilderEvents.add(new ConfigBuilderEvent("Using Stream Filter Type: " + filterType));
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
  fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
origin: org.milyn/milyn-smooks-all

/**
 * Build the basic SmooksResourceConfiguration table from the list.
 * @param resourceConfigsList List of SmooksResourceConfigurations.
 */
private void buildSmooksResourceConfigurationTable(List resourceConfigsList) {
for (final Object resourceConfig : resourceConfigsList)
{
 addResourceConfiguration((SmooksResourceConfiguration) resourceConfig);
}
}
origin: org.milyn/milyn-smooks-core

/**
 * Public Constructor.
 * <p/>
 * The execution context is constructed within the context of a target profile and
 * application context.
 * @param targetProfile The target profile (base profile) for this context.
 * These parameters are not appended to the supplied requestURI.  This arg must be supplied, even if it's empty.
 * @param context The application context.
 * @param contentEncoding Character encoding to be used when parsing content.  Null
 * defaults to "UTF-8".
 * @param extendedVisitorConfigMap Preconfigured/extended Visitor Configuration Map.
 * @throws UnknownProfileMemberException Unknown target profile.
 */
public StandaloneExecutionContext(String targetProfile, ApplicationContext context, String contentEncoding, VisitorConfigMap extendedVisitorConfigMap) throws UnknownProfileMemberException {
  if(targetProfile == null) {
    throw new IllegalArgumentException("null 'targetProfile' arg in constructor call.");
  }
  if(context == null) {
    throw new IllegalArgumentException("null 'context' arg in constructor call.");
  }
  this.context = context;
  setContentEncoding(contentEncoding);
  targetProfileSet = context.getProfileStore().getProfileSet(targetProfile);
  deliveryConfig = ContentDeliveryConfigBuilder.getConfig(targetProfileSet, context, extendedVisitorConfigMap);
  isDefaultSerializationOn = ParameterAccessor.getBoolParameter(Filter.DEFAULT_SERIALIZATION_ON, true, deliveryConfig);
}
org.milyn.deliveryContentDeliveryConfigBuilder

Javadoc

Content delivery configuration builder.

Most used methods

  • <init>
    Private (hidden) constructor.
  • addResourceConfiguration
    Add the supplied resource configuration to this configuration's main resource configuration list.
  • buildSmooksResourceConfigurationTable
    Build the basic SmooksResourceConfiguration table from the list.
  • createConfig
  • expandSmooksResourceConfigurationTable
    Expand the SmooksResourceConfiguration table. Expand the XmlDef entries to the target elements etc.
  • extractContentHandlers
    Extract the ContentHandler instances from the SmooksResourceConfiguration table and add them to thei
  • fireEvent
  • getConfig
    Get the ContentDeliveryConfig instance for the specified profile set.
  • getDeliveryConfigTable
  • getResourceFilterCharacteristics
    Logging support function.
  • getStreamFilterType
  • load
    Build the ContentDeliveryConfigBuilder for the specified device. Creates the buildTable instance and
  • getStreamFilterType,
  • load,
  • logResourceConfig,
  • printHandlerCharacteristics,
  • sortSmooksResourceConfigurations

Popular in Java

  • Updating database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now