Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Marked ResourceRoute private methods as protected
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+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 " |
|
|