Changed HttpPrintStream to use a internal stream instead of extending one
This commit is contained in:
parent
a199165756
commit
1684c86a60
13 changed files with 130 additions and 119 deletions
|
|
@ -27,6 +27,7 @@ import zutil.net.http.HttpPage;
|
|||
import zutil.net.http.HttpPrintStream;
|
||||
import zutil.net.ws.WebServiceDef;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
|
@ -44,7 +45,7 @@ public class WSDLHttpPage implements HttpPage {
|
|||
HttpHeaderParser client_info,
|
||||
Map<String, Object> session,
|
||||
Map<String, String> cookie,
|
||||
Map<String, String> request) {
|
||||
Map<String, String> request) throws IOException{
|
||||
out.setHeader("Content-Type", "text/xml");
|
||||
wsdl.write( out );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,10 +34,7 @@ import zutil.net.ws.WSReturnObject;
|
|||
import zutil.net.ws.WSReturnObject.WSValueName;
|
||||
import zutil.net.ws.WebServiceDef;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintStream;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.io.*;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
|
@ -62,10 +59,13 @@ public class WSDLWriter{
|
|||
services.add(serv);
|
||||
}
|
||||
|
||||
|
||||
public void write( Writer out ) throws IOException {
|
||||
out.write(generate());
|
||||
}
|
||||
public void write( PrintStream out ) {
|
||||
out.print(generate());
|
||||
}
|
||||
|
||||
public void write( OutputStream out ) throws IOException {
|
||||
out.write(generate().getBytes() );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue