/** * @param context the set of validation rules to be applied to messages parsed or encoded by * this parser (defaults to ValidationContextFactory.DefaultValidation) * * @deprecated use a dedicated {@link HapiContext} and set its ValidationContext property */ public void setValidationContext(ValidationContext context) { HapiContext newContext = new DefaultHapiContext(getHapiContext()); newContext.setValidationContext(context); setHapiContext(newContext); }
/** * @param context the set of validation rules to be applied to messages parsed or encoded by * this parser (defaults to ValidationContextFactory.DefaultValidation) * * @deprecated use a dedicated {@link HapiContext} and set its ValidationContext property */ public void setValidationContext(ValidationContext context) { HapiContext newContext = new DefaultHapiContext(getHapiContext()); newContext.setValidationContext(context); setHapiContext(newContext); }
/** * Sets the parser configuration for this parser (may not be null). This is a bean which * contains configuration instructions relating to how a parser should be parsing or encoding * messages it deals with. * * @param configuration The parser configuration * * @deprecated use a dedicated {@link HapiContext} and set its ParserConfiguration property */ public void setParserConfiguration(ParserConfiguration configuration) { HapiContext newContext = new DefaultHapiContext(getHapiContext()); newContext.setParserConfiguration(configuration); setHapiContext(newContext); }
/** * Sets the parser configuration for this parser (may not be null). This is a bean which * contains configuration instructions relating to how a parser should be parsing or encoding * messages it deals with. * * @param configuration The parser configuration * * @deprecated use a dedicated {@link HapiContext} and set its ParserConfiguration property */ public void setParserConfiguration(ParserConfiguration configuration) { HapiContext newContext = new DefaultHapiContext(getHapiContext()); newContext.setParserConfiguration(configuration); setHapiContext(newContext); }