Made TransportException a subclass of IOException
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006 the original author or authors.
|
||||
* Copyright 2007 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,20 +16,17 @@
|
||||
|
||||
package org.springframework.ws.transport;
|
||||
|
||||
import org.springframework.ws.WebServiceException;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Abstract base class for exceptions related to the transport layer.
|
||||
*
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
public abstract class TransportException extends WebServiceException {
|
||||
public abstract class TransportException extends IOException {
|
||||
|
||||
protected TransportException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
protected TransportException(String msg, Throwable ex) {
|
||||
super(msg, ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,6 @@ import java.io.InputStream;
|
||||
import java.util.Iterator;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.springframework.ws.transport.TransportException;
|
||||
import org.springframework.ws.transport.TransportInputStream;
|
||||
import org.springframework.ws.transport.support.EnumerationIterator;
|
||||
|
||||
@@ -55,11 +54,11 @@ public class HttpServletTransportInputStream extends TransportInputStream {
|
||||
return httpServletRequest;
|
||||
}
|
||||
|
||||
public Iterator getHeaderNames() throws TransportException {
|
||||
public Iterator getHeaderNames() {
|
||||
return new EnumerationIterator(httpServletRequest.getHeaderNames());
|
||||
}
|
||||
|
||||
public Iterator getHeaders(String name) throws TransportException {
|
||||
public Iterator getHeaders(String name) {
|
||||
return new EnumerationIterator(httpServletRequest.getHeaders(name));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,8 +20,7 @@ import java.util.Enumeration;
|
||||
import java.util.Iterator;
|
||||
|
||||
/**
|
||||
* Private static class that adapts a header enumeration provided by the HttpServletRequest and provides it as an
|
||||
* iterator.
|
||||
* Adapts an {@link Enumeration} to follow the interface of {@link Iterator}.
|
||||
*
|
||||
* @author Arjen Poutsma
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user