We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de357c7 commit 7abcd18Copy full SHA for 7abcd18
1 file changed
src/main/java/com/atomgraph/linkeddatahub/server/util/XsltMasterUpdater.java
@@ -222,10 +222,20 @@ private void removePackageImports(Element stylesheet)
222
*/
223
private Path getStaticPath()
224
{
225
- String realPath = servletContext.getRealPath("/static");
+ String realPath = getServletContext().getRealPath("/static");
226
if (realPath == null)
227
throw new IllegalStateException("Could not resolve real path for /static directory");
228
return Paths.get(realPath);
229
}
230
231
+ /**
232
+ * Returns servlet context.
233
+ *
234
+ * @return servlet context
235
+ */
236
+ public ServletContext getServletContext()
237
+ {
238
+ return servletContext;
239
+ }
240
+
241
0 commit comments