Ignore:
Timestamp:
06/13/14 16:57:43 (10 years ago)
Author:
pharms
Message:
  • next solved issue with reused buffers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-httpmonitor-test/src/test/java/de/ugoe/cs/autoquest/httpmonitor/DummyServlet.java

    r1376 r1567  
    3131     
    3232    /** */ 
     33    private String requestMessage; 
     34     
     35    /** */ 
    3336    private String responseMessage; 
    3437 
     
    4043        throws ServletException, IOException 
    4144    { 
     45        requestMessage = AbstractTC.readStreamContentToString(request.getInputStream()); 
     46         
    4247        System.err.println("responding on get with:   " + responseMessage); 
    4348        response.getOutputStream().write(responseMessage.getBytes()); 
     
    5156        throws ServletException, IOException 
    5257    { 
     58        requestMessage = AbstractTC.readStreamContentToString(request.getInputStream()); 
     59         
    5360        System.err.println("responding on post with:  " + responseMessage); 
    5461        response.getOutputStream().write(responseMessage.getBytes()); 
     
    5966     */ 
    6067    @Override 
    61     protected void doTrace(HttpServletRequest req, HttpServletResponse response) 
     68    protected void doTrace(HttpServletRequest request, HttpServletResponse response) 
    6269        throws ServletException, IOException 
    6370    { 
     71        requestMessage = AbstractTC.readStreamContentToString(request.getInputStream()); 
     72         
    6473        System.err.println("responding on trace with: " + responseMessage); 
    6574        response.getOutputStream().write(responseMessage.getBytes()); 
     
    7281        this.responseMessage = responseMessage; 
    7382    } 
     83 
     84    /** 
     85     *  
     86     */ 
     87    String getRequest() { 
     88        return this.requestMessage; 
     89    } 
    7490} 
Note: See TracChangeset for help on using the changeset viewer.