-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace JAX-RS with servlet status code in PKIExceptions
- Loading branch information
Showing
11 changed files
with
33 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
base/common/src/main/java/com/netscape/certsrv/base/ConflictingOperationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
base/common/src/main/java/com/netscape/certsrv/base/ForbiddenException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
base/common/src/main/java/com/netscape/certsrv/base/HTTPGoneException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// | ||
package com.netscape.certsrv.base; | ||
|
||
import javax.ws.rs.core.Response; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
|
@@ -15,11 +15,11 @@ public class RequestNotAcceptable extends PKIException { | |
private static final long serialVersionUID = 1L; | ||
|
||
public RequestNotAcceptable(String message) { | ||
super(Response.Status.NOT_ACCEPTABLE, message); | ||
super(HttpServletResponse.SC_NOT_ACCEPTABLE, message); | ||
} | ||
|
||
public RequestNotAcceptable(String message, Throwable cause) { | ||
super(Response.Status.NOT_ACCEPTABLE, message, cause); | ||
super(HttpServletResponse.SC_NOT_ACCEPTABLE, message, cause); | ||
} | ||
|
||
public RequestNotAcceptable(Data data) { | ||
|
6 changes: 3 additions & 3 deletions
6
base/common/src/main/java/com/netscape/certsrv/base/ResourceNotFoundException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
base/common/src/main/java/com/netscape/certsrv/base/ServiceUnavailableException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
// | ||
package com.netscape.certsrv.base; | ||
|
||
import javax.ws.rs.core.Response; | ||
import javax.servlet.http.HttpServletResponse; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
|
@@ -15,11 +15,11 @@ public class UnsupportedMediaType extends PKIException { | |
private static final long serialVersionUID = 1L; | ||
|
||
public UnsupportedMediaType(String message) { | ||
super(Response.Status.UNSUPPORTED_MEDIA_TYPE, message); | ||
super(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, message); | ||
} | ||
|
||
public UnsupportedMediaType(String message, Throwable cause) { | ||
super(Response.Status.UNSUPPORTED_MEDIA_TYPE, message, cause); | ||
super(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, message, cause); | ||
} | ||
|
||
public UnsupportedMediaType(Data data) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters