This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user