-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameter validation for aws-wps requests
- Loading branch information
anguss00
authored and
anguss00
committed
Jan 8, 2018
1 parent
8d8a64e
commit 42ca8fe
Showing
6 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ s3LambdaCodeFilename=request-handler.zip | |
s3LambdaCodeURL=https://s3-ap-southeast-2.amazonaws.com/wps-lambda/request-handler-0.01-lambda-package.zip | ||
templatesURL=https://raw.githubusercontent.com/aodn/aws-wps/master/wps-common/src/main/resources/config/templates.xml | ||
administratorEmail[email protected] | ||
geonetworkCatalogueURL=http://catalogue-sandbox.aodn.org.au/geonetwork |
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
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
3 changes: 2 additions & 1 deletion
3
request-handler/src/main/java/au/org/aodn/aws/wps/operation/Operation.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package au.org.aodn.aws.wps.operation; | ||
|
||
import au.org.aodn.aws.exception.OGCException; | ||
import au.org.aodn.aws.wps.exception.ValidationException; | ||
|
||
public interface Operation { | ||
String execute() throws OGCException; | ||
String execute() throws OGCException, ValidationException; | ||
} |
24 changes: 24 additions & 0 deletions
24
wps-common/src/main/java/au/org/aodn/aws/wps/exception/ValidationException.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package au.org.aodn.aws.wps.exception; | ||
|
||
public class ValidationException extends Exception { | ||
|
||
public ValidationException() | ||
{ | ||
super(); | ||
} | ||
|
||
public ValidationException(String message) | ||
{ | ||
super(message); | ||
} | ||
|
||
public ValidationException(String message, Throwable ex) | ||
{ | ||
super(message, ex); | ||
} | ||
|
||
public ValidationException(Throwable ex) | ||
{ | ||
super(ex); | ||
} | ||
} |
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