Changeset 1629


Ignore:
Timestamp:
07/29/14 15:07:04 (10 years ago)
Author:
sherbold
Message:
  • added new constructor to HTTPLogParser for an InputStream? to specify the service name map
File:
1 edited

Legend:

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

    r1622 r1629  
    9494     * 
    9595     * @param urlNameMapFile properties file with the path to logical name map 
    96      * @throws IOException  
    97      * @throws   
     96     * @throws IOException thrown if there is an error load in the service name map 
    9897     */ 
    9998    public HTTPLogParser(File urlNameMapFile) throws IOException { 
    100         super(); 
     99        this(new FileInputStream(urlNameMapFile)); 
     100    } 
     101     
     102    /** 
     103     * <p> 
     104     * Constructor. Creates a new HTTPLogParser with a urlNameMap 
     105     * </p> 
     106     * 
     107     * @param urlNameMapFile properties file with the path to logical name map 
     108     * @throws IOException thrown if there is an error load in the service name map 
     109     */ 
     110    public HTTPLogParser(InputStream urlNameMapStream) throws IOException { 
     111        this(); 
    101112        urlNameMap = new Properties(); 
    102         urlNameMap.load(new FileInputStream(urlNameMapFile)); 
     113        urlNameMap.load(urlNameMapStream); 
    103114    } 
    104115 
Note: See TracChangeset for help on using the changeset viewer.