-
Notifications
You must be signed in to change notification settings - Fork 136
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 and the codes are retrieved from httpcore package.
- Loading branch information
Showing
11 changed files
with
34 additions
and
34 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: 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.servlet.http.HttpServletResponse; | ||
import org.apache.http.HttpStatus; | ||
|
||
/** | ||
* @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(HttpServletResponse.SC_NOT_ACCEPTABLE, message); | ||
super(HttpStatus.SC_NOT_ACCEPTABLE, message); | ||
} | ||
|
||
public RequestNotAcceptable(String message, Throwable cause) { | ||
super(HttpServletResponse.SC_NOT_ACCEPTABLE, message, cause); | ||
super(HttpStatus.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.servlet.http.HttpServletResponse; | ||
import org.apache.http.HttpStatus; | ||
|
||
/** | ||
* @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(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, message); | ||
super(HttpStatus.SC_UNSUPPORTED_MEDIA_TYPE, message); | ||
} | ||
|
||
public UnsupportedMediaType(String message, Throwable cause) { | ||
super(HttpServletResponse.SC_UNSUPPORTED_MEDIA_TYPE, message, cause); | ||
super(HttpStatus.SC_UNSUPPORTED_MEDIA_TYPE, message, cause); | ||
} | ||
|
||
public UnsupportedMediaType(Data data) { | ||
|