/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }