Skip to content

Commit 7abcd18

Browse files
committed
Added getter
1 parent de357c7 commit 7abcd18

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/main/java/com/atomgraph/linkeddatahub/server/util/XsltMasterUpdater.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,20 @@ private void removePackageImports(Element stylesheet)
222222
*/
223223
private Path getStaticPath()
224224
{
225-
String realPath = servletContext.getRealPath("/static");
225+
String realPath = getServletContext().getRealPath("/static");
226226
if (realPath == null)
227227
throw new IllegalStateException("Could not resolve real path for /static directory");
228228
return Paths.get(realPath);
229229
}
230230

231+
/**
232+
* Returns servlet context.
233+
*
234+
* @return servlet context
235+
*/
236+
public ServletContext getServletContext()
237+
{
238+
return servletContext;
239+
}
240+
231241
}

0 commit comments

Comments
 (0)