Skip to content

Commit

Permalink
Replacing deprecated DefaultServiceExceptionHandler with its superclass
Browse files Browse the repository at this point in the history
  • Loading branch information
aaime committed Jun 1, 2019
1 parent ad5de20 commit 2bf4eaf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 35 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion src/ows/src/main/java/org/geoserver/ows/Dispatcher.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1770,7 +1770,7 @@ void handleServiceException(ServiceException se, Service service, Request reques


if (handler == null) { if (handler == null) {
// none found, fall back on default // none found, fall back on default
handler = new DefaultServiceExceptionHandler(); handler = new OWS10ServiceExceptionHandler();
} }


// if SOAP request use special SOAP exception handler, but only for OWS requests because // if SOAP request use special SOAP exception handler, but only for OWS requests because
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
import org.w3c.dom.Document; import org.w3c.dom.Document;
import org.w3c.dom.Node; import org.w3c.dom.Node;


public class DefaultServiceExceptionHandlerTest extends TestCase { public class OWS10ServiceExceptionHandlerTest extends TestCase {


private DefaultServiceExceptionHandler handler; private OWS10ServiceExceptionHandler handler;
private MockHttpServletRequest request; private MockHttpServletRequest request;
private MockHttpServletResponse response; private MockHttpServletResponse response;
private Request requestInfo; private Request requestInfo;
Expand Down Expand Up @@ -52,7 +52,7 @@ public int getServerPort() {


response = new MockHttpServletResponse(); response = new MockHttpServletResponse();


handler = new DefaultServiceExceptionHandler(); handler = new OWS10ServiceExceptionHandler();


requestInfo = new Request(); requestInfo = new Request();
requestInfo.setHttpRequest(request); requestInfo.setHttpRequest(request);
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.util.logging.Level; import java.util.logging.Level;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import org.geoserver.config.GeoServer; import org.geoserver.config.GeoServer;
import org.geoserver.ows.DefaultServiceExceptionHandler;
import org.geoserver.ows.Request; import org.geoserver.ows.Request;
import org.geoserver.ows.ServiceExceptionHandler; import org.geoserver.ows.ServiceExceptionHandler;
import org.geoserver.ows.util.OwsUtils; import org.geoserver.ows.util.OwsUtils;
Expand All @@ -29,7 +28,7 @@
* <code>ServiceExceptionReport</code> document. * <code>ServiceExceptionReport</code> document.
* *
* <p>This handler is referred to as "legacy" as newer services move to the ows style exception * <p>This handler is referred to as "legacy" as newer services move to the ows style exception
* report. See {@link DefaultServiceExceptionHandler}. * report. See {@link org.geoserver.ows.OWS10ServiceExceptionHandler}.
* *
* <p> * <p>
* *
Expand Down

0 comments on commit 2bf4eaf

Please sign in to comment.