Created
January 27, 2014 11:45
-
-
Save pstoellberger/8647165 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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