You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2004/08/18 15:16:39 UTC

cvs commit: ws-axis/java/src/org/apache/axis/transport/http QSWSDLHandler.java

dims        2004/08/18 06:16:39

  Modified:    java/src/org/apache/axis/transport/http QSWSDLHandler.java
  Log:
  Make it easy to extend QWSDLHandler
  
  Revision  Changes    Path
  1.8       +11 -2     ws-axis/java/src/org/apache/axis/transport/http/QSWSDLHandler.java
  
  Index: QSWSDLHandler.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/transport/http/QSWSDLHandler.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- QSWSDLHandler.java	2 Apr 2004 16:05:11 -0000	1.7
  +++ QSWSDLHandler.java	18 Aug 2004 13:16:39 -0000	1.8
  @@ -71,7 +71,7 @@
   
               if (doc != null) {
                   response.setContentType ("text/xml; charset="+XMLUtils.getEncoding().toLowerCase());
  -                XMLUtils.PrettyDocumentToWriter (doc, writer);
  +                reportWSDL(doc, writer);
               }
   
               else {
  @@ -108,6 +108,15 @@
       }
   
       /**
  +     * report WSDL
  +     * @param doc
  +     * @param writer
  +     */ 
  +    public void reportWSDL(Document doc, PrintWriter writer) {
  +        XMLUtils.PrettyDocumentToWriter (doc, writer);
  +    }
  +
  +    /**
        * report that we have no WSDL
        * @param res
        * @param writer
  @@ -115,7 +124,7 @@
        * @param axisFault optional fault string, for extra info at debug time only
        */
   
  -    private void reportNoWSDL (HttpServletResponse res, PrintWriter writer,
  +    public void reportNoWSDL (HttpServletResponse res, PrintWriter writer,
                                  String moreDetailCode, AxisFault axisFault) {
           res.setStatus (HttpURLConnection.HTTP_NOT_FOUND);
           res.setContentType ("text/html");