Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed to use MediaType constants instead of literal strings
- Loading branch information
Showing
8 changed files
with
69 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
package org.fcrepo.modeshape; | ||
|
||
import static javax.ws.rs.core.Response.status; | ||
import static javax.ws.rs.core.Response.Status.FORBIDDEN; | ||
import static javax.ws.rs.core.Response.Status.NOT_FOUND; | ||
|
||
import javax.ws.rs.core.Response; | ||
|
||
/** | ||
* Convenience class for constructs useful to many JAX-RS methods. | ||
* | ||
* @author ajs6f | ||
* | ||
* | ||
*/ | ||
public abstract class Constants { | ||
|
||
protected static final Response four01 = Response.status(404).entity("401") | ||
.build(); | ||
protected static final Response four04 = Response.status(404).entity("404") | ||
.build(); | ||
|
||
protected static final Response four03 = status(FORBIDDEN).build(); | ||
protected static final Response four04 = status(NOT_FOUND).build(); | ||
} |
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
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
Oops, something went wrong.