-
-
Save EricWittmann/aa0073b47f1f4d159c6a75e60ab22faf 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
/* (non-Javadoc) | |
* @see io.apiman.gateway.engine.policies.AbstractMappedPolicy#doApply(ApiRequest, IPolicyContext, C, IPolicyChain) | |
*/ | |
@Override | |
protected void doApply(final ApiRequest request, final IPolicyContext context, | |
final ConfigBean config, final IPolicyChain<ApiRequest> chain) { | |
String originalDest = request.getDestination(); | |
String modifiedDest = modifyDestination(originalDest); | |
request.setDestination(modifiedDest); | |
QueryMap queryParams = request.getQueryParams(); | |
queryParams.remove("someKey"); | |
chain.doApply(request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment