-
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.
Remove server classes from common library
Status codes were retrieved from tomcat servlet.jar package but since the common package should be used in the server as well as the client this dependency has been removed. The codes are now handled in the the common package.
- Loading branch information
Showing
11 changed files
with
48 additions
and
42 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
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: 2 additions & 4 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: 2 additions & 4 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: 2 additions & 4 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,8 +5,6 @@ | |
// | ||
package com.netscape.certsrv.base; | ||
|
||
import javax.servlet.http.HttpServletResponse; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
|
@@ -15,11 +13,11 @@ public class RequestNotAcceptable extends PKIException { | |
private static final long serialVersionUID = 1L; | ||
|
||
public RequestNotAcceptable(String message) { | ||
super(HttpServletResponse.SC_NOT_ACCEPTABLE, message); | ||
super(ERROR_CODE.NOT_ACCEPTABLE, message); | ||
} | ||
|
||
public RequestNotAcceptable(String message, Throwable cause) { | ||
super(HttpServletResponse.SC_NOT_ACCEPTABLE, message, cause); | ||
super(ERROR_CODE.NOT_ACCEPTABLE, message, cause); | ||
} | ||
|
||
public RequestNotAcceptable(Data data) { | ||
|
6 changes: 2 additions & 4 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: 2 additions & 4 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,8 +5,6 @@ | |
// | ||
package com.netscape.certsrv.base; | ||
|
||
import javax.servlet.http.HttpServletResponse; | ||
|
||
/** | ||
* @author Marco Fargetta {@literal <[email protected]>} | ||
*/ | ||
|
@@ -15,11 +13,11 @@ public class UnsupportedMediaType extends PKIException { | |
private static final long serialVersionUID = 1L; | ||
|
||
public UnsupportedMediaType(String message) { | ||
super(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, message); | ||
super(ERROR_CODE.UNSUPPORTED_MEDIA_TYPE, message); | ||
} | ||
|
||
public UnsupportedMediaType(String message, Throwable cause) { | ||
super(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, message, cause); | ||
super(ERROR_CODE.UNSUPPORTED_MEDIA_TYPE, message, cause); | ||
} | ||
|
||
public UnsupportedMediaType(Data data) { | ||
|