This commit is contained in:
Arjen Poutsma
2007-02-25 21:20:53 +00:00
parent 5c580f02a1
commit fbdd7f7b98
2 changed files with 2 additions and 16 deletions

View File

@@ -35,7 +35,7 @@ import org.springframework.ws.transport.TransportInputStream;
*
* @author Arjen Poutsma
*/
public class HttpUrlConnectionTransportInputStream extends TransportInputStream {
class HttpUrlConnectionTransportInputStream extends TransportInputStream {
private final HttpURLConnection connection;
@@ -48,13 +48,6 @@ public class HttpUrlConnectionTransportInputStream extends TransportInputStream
this.connection = connection;
}
/**
* Returns the wrapped <code>HttpURLConnection</code>.
*/
public HttpURLConnection getConnection() {
return connection;
}
protected InputStream createInputStream() throws IOException {
if (connection.getResponseCode() == HttpURLConnection.HTTP_INTERNAL_ERROR) {
return connection.getErrorStream();

View File

@@ -29,7 +29,7 @@ import org.springframework.ws.transport.TransportOutputStream;
*
* @author Arjen Poutsma
*/
public class HttpUrlConnectionTransportOutputStream extends TransportOutputStream {
class HttpUrlConnectionTransportOutputStream extends TransportOutputStream {
private final HttpURLConnection connection;
@@ -49,11 +49,4 @@ public class HttpUrlConnectionTransportOutputStream extends TransportOutputStrea
protected OutputStream createOutputStream() throws IOException {
return connection.getOutputStream();
}
/**
* Returns the wrapped <code>HttpURLConnection</code>.
*/
public HttpURLConnection getConnection() {
return connection;
}
}