/** * used to determine if we need to save the request or response * * @param pol * @return */ protected boolean containsSLAXpathOrUserIdentXpath(TransactionalWebServicePolicy pol) { boolean found = false; if (pol.getUserIdentification() != null && !pol.getUserIdentification().getUserIdentity().isEmpty()) { for (int i = 0; i < pol.getUserIdentification().getUserIdentity().size(); i++) { if (pol.getUserIdentification().getUserIdentity().get(i).getXPaths() != null && pol.getUserIdentification().getUserIdentity().get(i).getXPaths() != null && !pol.getUserIdentification().getUserIdentity().get(i).getXPaths().getXPathExpressionType().isEmpty()) { found = true; } } } if (found) { return true; } if (pol.getServiceLevelAggrements() != null && !pol.getServiceLevelAggrements().getSLA().isEmpty()) { for (int i = 0; i < pol.getServiceLevelAggrements().getSLA().size(); i++) { found = found || doesSLAContainXpath(pol.getServiceLevelAggrements().getSLA().get(i)); } } return found; }
users.add(mc.HttpIdentity); if (p.getUserIdentification() == null || p.getUserIdentification().getUserIdentity() == null || p.getUserIdentification().getUserIdentity().isEmpty()) { return users; ArrayOfUserIdentity id = (ArrayOfUserIdentity) p.getUserIdentification(); for (int i = 0; i < id.getUserIdentity().size(); i++) { if (id.getUserIdentity().get(i).isUseHttpHeader() != null && id.getUserIdentity().get(i).isUseHttpHeader()) {
((TransactionalWebServicePolicy) pol).getUserIdentification().getUserIdentity().addAll(userident); } else {