Ignore:
Timestamp:
03/11/15 16:59:16 (10 years ago)
Author:
sherbold
Message:
  • extended SimpleSOAPEventType with clientName
  • modified UMLUtils.createInteraction... to use the client name to determine the source lifeline
  • updated UMLUtilsTest to work with new service name definitions
Location:
trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/HTTPUtils.java

    r1635 r1913  
    143143                    SOAPEventType eventType = (SOAPEventType) event.getType(); 
    144144                    newSequence.add(new Event(new SimpleSOAPEventType(eventType.getCalledMethod(), 
    145                                                                       eventType.getServiceName()))); 
     145                                                                      eventType.getServiceName(), 
     146                                                                      eventType.getClientName()))); 
    146147                } 
    147148                else { 
  • trunk/autoquest-plugin-http/src/main/java/de/ugoe/cs/autoquest/plugin/http/eventcore/SimpleSOAPEventType.java

    r1642 r1913  
    4444     */ 
    4545    private final String serviceName; 
     46     
     47    /** 
     48     * <p> 
     49     * the name of the client; this is either the host/ip and port of the sender or, if a path 
     50     * map is available, a human readable name that may be based also on the receiver 
     51     * </p> 
     52     */ 
     53    private final String clientName; 
    4654 
    4755    /** 
     
    5159     *  
    5260     */ 
    53     public SimpleSOAPEventType(String calledMethod, String serviceName) { 
     61    public SimpleSOAPEventType(String calledMethod, String serviceName, String clientName) { 
    5462        if (calledMethod == null) { 
    5563            throw new IllegalArgumentException("called method must not be null"); 
     
    5866            throw new IllegalArgumentException("serviceName must not be null"); 
    5967        } 
     68        if (clientName == null) { 
     69            throw new IllegalArgumentException("clientName must not be null"); 
     70        } 
    6071        this.calledMethod = calledMethod; 
    6172        this.serviceName = serviceName; 
     73        this.clientName = clientName; 
    6274    } 
    6375 
     
    8294    public String getServiceName() { 
    8395        return serviceName; 
     96    } 
     97     
     98    /** 
     99     * <p> 
     100     * the name of the client calling in this request 
     101     * </p> 
     102     * 
     103     * @return the name of the client calling in this request 
     104     */ 
     105    public String getClientName() { 
     106        return clientName; 
    84107    } 
    85108 
Note: See TracChangeset for help on using the changeset viewer.