Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. public static boolean isProxyService(MessageContext messageContext,
  2. AxisService axisService) {
  3.  
  4. if (axisService != null) {
  5. Parameter val = axisService.getParameter("serviceType");
  6. if (val != null && val.getValue().toString().equalsIgnoreCase("Proxy")) {
  7. if (logger.isDebugEnabled()) {
  8. logger.debug("Parameter Value Service Type: "
  9. + val.getValue().toString());
  10. }
  11. return true;
  12. }
  13. }
  14. return false;
  15. }
  16. public static boolean isAPI(MessageContext messageContext,
  17. AxisService axisService) {
  18.  
  19. if(!isProxyService(messageContext, axisService) && axisService.getAxisServiceGroup().getServiceGroupName().equals(SynapseConstants.SYNAPSE_SERVICE_NAME)){
  20. return true;
  21. }
  22. return false;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement