Skip to content

Instantly share code, notes, and snippets.

@pstoellberger
Created January 27, 2014 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstoellberger/8647165 to your computer and use it in GitHub Desktop.
Save pstoellberger/8647165 to your computer and use it in GitHub Desktop.
public class FilterDynamicSchemaProcessor extends FilterDynamicSchemaProcessor implements DynamicSchemaProcessor {
@Override
protected String filter(String schemaUrl, PropertyList connectInfo, InputStream is) throws Exception {
String schema = super.filter(schemaUrl, connectInfo, is);
System.out.println("FilterDynamicSchemaProcessor filter() called");
String schema = super.filter(schemaUrl, connectInfo, stream);
try
{
schema = schema.replaceAll("%USER_ID%", "abcd");
}
catch (PatternSyntaxException pse)
{
pse.printStackTrace();
}
System.out.println("Inside DynamicSchemaProcessor Filter");
return schema;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment