Codota Logo
ContentDeliveryConfigBuilder
Code IndexAdd Codota 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)

  • Common ways to obtain ContentDeliveryConfigBuilder
private void myMethod () {
ContentDeliveryConfigBuilder c =
  • Codota IconProfileSet profileSet;ApplicationContext applicationContext;new ContentDeliveryConfigBuilder(profileSet, applicationContext)
  • Smart code suggestions by Codota
}
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

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Point (java.awt)
    A point representing a location in (x, y) coordinate space, specified in integer precision.
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • Socket (java.net)
    Provides a client-side TCP socket.
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • ImageIO (javax.imageio)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now