Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static boolean isProxyService(MessageContext messageContext,
- AxisService axisService) {
- if (axisService != null) {
- Parameter val = axisService.getParameter("serviceType");
- if (val != null && val.getValue().toString().equalsIgnoreCase("Proxy")) {
- if (logger.isDebugEnabled()) {
- logger.debug("Parameter Value Service Type: "
- + val.getValue().toString());
- }
- return true;
- }
- }
- return false;
- }
- public static boolean isAPI(MessageContext messageContext,
- AxisService axisService) {
- if(!isProxyService(messageContext, axisService) && axisService.getAxisServiceGroup().getServiceGroupName().equals(SynapseConstants.SYNAPSE_SERVICE_NAME)){
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement