@Override public String transpose(Rewrite event, EvaluationContext context, String value) { // Retrieve the value of lang from the context String targetLang = (String) Parameters.retrieve(context, this.languageParam); String transposedValue = translate(targetLang, value); if (transposedValue == null) { if (onFailureOperation != null) { context.addPreOperation(onFailureOperation); } // if language is not defined, do not translate and keep original value. transposedValue = value; } return transposedValue; }
@Override public String transpose(Rewrite event, EvaluationContext context, String value) { // Retrieve the value of lang from the context String targetLang = (String) Parameters.retrieve(context, this.languageParam); String transposedValue = translate(targetLang, value); if (transposedValue == null) { if (onFailureOperation != null) { context.addPreOperation(onFailureOperation); } // if language is not defined, do not translate and keep original value. transposedValue = value; } return transposedValue; }
context.addPreOperation(operation);
context.addPreOperation(operation);
+ requestPattern); redirect.setParameterStore(store); context.addPreOperation(redirect); return true;
+ requestPattern); redirect.setParameterStore(store); context.addPreOperation(redirect); return true;
+ requestPattern); redirect.setParameterStore(store); context.addPreOperation(redirect); return true;