You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns JAX-RS resource that will handle this request.
69
+
* Returns proxy class that takes precedence over the default JAX-RS path matching.
70
70
* The request is proxied in two cases:
71
71
* <ul>
72
72
* <li>externally (URI specified by the <code>?uri</code> query param)</li>
73
73
* <li>internally if it matches a <code>lapp:Dataset</code> specified in the system app config</li>
74
74
* </ul>
75
-
* Otherwise, fall back to SPARQL Graph Store backed by the app's service.
76
-
*
77
-
* @return resource
75
+
* @return optional class
78
76
*/
79
-
@Path("{path: .*}")
80
-
publicObjectgetSubResource()
77
+
publicOptional<Class> getProxyClass()
81
78
{
82
79
if (getUriInfo().getQueryParameters().containsKey(AC.uri.getLocalName()))
83
80
{
84
81
if (log.isDebugEnabled()) log.debug("No Application matched request URI <{}>, dispatching to ProxyResourceBase", getUriInfo().getQueryParameters().getFirst(AC.uri.getLocalName()));
85
-
returnProxyResourceBase.class;
82
+
returnOptional.of(ProxyResourceBase.class);
86
83
}
87
84
if (getDataset().isPresent())
88
85
{
89
86
if (log.isDebugEnabled()) log.debug("Serving request URI <{}> from Dataset <{}>, dispatching to ProxyResourceBase", getUriInfo().getAbsolutePath(), getDataset().get());
90
-
returnProxyResourceBase.class;
87
+
returnOptional.of(ProxyResourceBase.class);
91
88
}
92
-
93
-
returngetResourceClass();
89
+
90
+
returnOptional.empty();
91
+
}
92
+
93
+
/**
94
+
* Returns JAX-RS resource that will handle this request.
0 commit comments