added CORS filter

This commit is contained in:
Tony Tam
2013-04-03 00:27:51 -07:00
parent 99c292a7ad
commit df333fdfb5
5 changed files with 58 additions and 7 deletions

View File

@@ -40,9 +40,10 @@ object JavaJaxRSServerGenerator extends BasicJavaGenerator {
// supporting classes
override def supportingFiles = List(
("README.mustache", outputFolder, "README.md"),
("ApiException.mustache", destinationDir + "/" + apiPackage.get.replaceAll("\\.", "/"), "ApiException.java"),
("ApiOriginFilter.mustache", destinationDir + "/" + apiPackage.get.replaceAll("\\.", "/"), "ApiOriginFilter.java"),
("ApiResponse.mustache", destinationDir + "/" + apiPackage.get.replaceAll("\\.", "/"), "ApiResponse.java"),
("JacksonJsonProvider.mustache", destinationDir + "/" + apiPackage.get.replaceAll("\\.", "/"), "JacksonJsonProvider.java"),
("ApiException.mustache", destinationDir + "/" + apiPackage.get.replaceAll("\\.", "/"), "ApiException.java"),
("NotFoundException.mustache", destinationDir + "/" + apiPackage.get.replaceAll("\\.", "/"), "NotFoundException.java"),
("pom.xml", outputFolder, "pom.xml"),
("web.mustache", outputFolder + "/src/main/webapp/WEB-INF", "web.xml")