Skip to content

Commit 424bedc

Browse files
author
Thomas Zayouna
committed
Marked ResourceRoute private methods as protected
1 parent be01892 commit 424bedc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

restx-core/src/main/java/restx/ResourcesRoute.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public void handle(RestxRequestMatch match, RestxRequest req, RestxResponse resp
130130
}
131131
}
132132

133-
private Optional<CachedResourcePolicy> cachePolicyMatching(String contentType, String path) {
133+
protected Optional<CachedResourcePolicy> cachePolicyMatching(String contentType, String path) {
134134
for(CachedResourcePolicy cachedResourcePolicy : cachedResourcePolicies){
135135
if(cachedResourcePolicy.matches(contentType, path)){
136136
return Optional.of(cachedResourcePolicy);
@@ -139,7 +139,7 @@ private Optional<CachedResourcePolicy> cachePolicyMatching(String contentType, S
139139
return Optional.absent();
140140
}
141141

142-
private void notFound(RestxResponse resp, String relativePath) throws IOException {
142+
protected void notFound(RestxResponse resp, String relativePath) throws IOException {
143143
resp.setStatus(HttpStatus.NOT_FOUND);
144144
resp.setContentType("text/plain");
145145
resp.getWriter().println("Resource route matched '" + this + "', but resource "

0 commit comments

Comments
 (0)