Permalink
Browse files

Marked ResourceRoute private methods as protected

  • Loading branch information...
Tomsons committed Sep 17, 2015
1 parent be01892 commit 424bedc5755aa8a8c50373999ac3eb4d83a8f3e5
Showing with 2 additions and 2 deletions.
  1. +2 −2 restx-core/src/main/java/restx/ResourcesRoute.java
@@ -130,7 +130,7 @@ public void handle(RestxRequestMatch match, RestxRequest req, RestxResponse resp
}
}
private Optional<CachedResourcePolicy> cachePolicyMatching(String contentType, String path) {
protected Optional<CachedResourcePolicy> cachePolicyMatching(String contentType, String path) {
for(CachedResourcePolicy cachedResourcePolicy : cachedResourcePolicies){
if(cachedResourcePolicy.matches(contentType, path)){
return Optional.of(cachedResourcePolicy);
@@ -139,7 +139,7 @@ public void handle(RestxRequestMatch match, RestxRequest req, RestxResponse resp
return Optional.absent();
}
private void notFound(RestxResponse resp, String relativePath) throws IOException {
protected void notFound(RestxResponse resp, String relativePath) throws IOException {
resp.setStatus(HttpStatus.NOT_FOUND);
resp.setContentType("text/plain");
resp.getWriter().println("Resource route matched '" + this + "', but resource "

0 comments on commit 424bedc

Please sign in to comment.