Пример #1
0
 private static boolean checkIfJMS(Request request) {
   try {
     String endpoint = request.getEndpoint();
     return StringUtils.hasContent(endpoint)
         && endpoint.startsWith(JMSEndpoint.JMS_ENDPIONT_PREFIX);
   } catch (NullPointerException e) {
     SoapUI.logError(e);
   }
   return false;
 }
 public void filterRequest(SubmitContext context, Request wsdlRequest) {
   Operation operation = wsdlRequest.getOperation();
   if (operation != null) {
     EndpointStrategy endpointStrategy =
         operation.getInterface().getProject().getEndpointStrategy();
     if (endpointStrategy != null) {
       endpointStrategy.filterRequest(context, wsdlRequest);
     }
   }
 }