<li><ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.Holder.html"title="class in com.djrapitops.plan.delivery.web"><spanclass="typeNameLink">Next Class</span></a></li>
<divclass="block">Service for modifying webserver request resolution.
<p>
It is recommended to use plugin based namespace in your custom targets,
eg. "/flyplugin/flying" to avoid collisions with other plugins.
You can also use <ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.html#getResolver-java.lang.String-"><code>getResolver(String)</code></a> to check if target already has a resolver.</div>
<tdclass="colLast"><code><spanclass="memberNameLink"><ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.Holder.html"title="class in com.djrapitops.plan.delivery.web">ResolverService.Holder</a></span></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.summary">
<!---->
</a>
<h3>Method Summary</h3>
<tableclass="memberSummary"border="0"cellpadding="3"cellspacing="0"summary="Method Summary table, listing methods, and an explanation">
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trid="i0"class="altColor">
<tdclass="colFirst"><code>static <ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.html"title="interface in com.djrapitops.plan.delivery.web">ResolverService</a></code></td>
<tdclass="colFirst"><code>java.util.Optional<<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a>></code></td>
<divclass="block">Obtain a <ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver"><code>Resolver</code></a> for a target.</div>
<tdclass="colFirst"><code>java.util.List<<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a>></code></td>
<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a> resolver)</code>
<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a> resolver)</code>
<divclass="block">Register a new resolver with regex that maches start of target.</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<divclass="details">
<ulclass="blockList">
<liclass="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ulclass="blockList">
<liclass="blockList"><aname="method.detail">
<!---->
</a>
<h3>Method Detail</h3>
<aname="getInstance--">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getInstance</h4>
<pre>static <ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.html"title="interface in com.djrapitops.plan.delivery.web">ResolverService</a> getInstance()</pre>
<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a> resolver)</pre>
<dd><code>pluginName</code> - Name of the plugin that is registering (For error messages)</dd>
<dd><code>start</code> - Start of the target to match against, eg "/example" will send "/example/target" etc to the Resolver.</dd>
<dd><code>resolver</code> - <ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver"><code>Resolver</code></a> to use for this</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If pluginName is null or empty.</dd>
<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a> resolver)</pre>
<divclass="block">Register a new resolver with regex that maches start of target.
<p>
NOTICE: It is recommended to avoid too generic regex like "/.*" to not override existing resolvers.
<p>
Parameters (?param=value) are not included in the regex matching.</div>
<dd><code>pluginName</code> - Name of the plugin that is registering (For error messages)</dd>
<dd><code>pattern</code> - Regex Pattern, "/example.*" will send "/exampletarget" etc to the Resolver.</dd>
<dd><code>resolver</code> - <ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver"><code>Resolver</code></a> to use for this.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - If pluginName is null or empty.</dd>
<pre>java.util.Optional<<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a>> getResolver(java.lang.String target)</pre>
<divclass="block">Obtain a <ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver"><code>Resolver</code></a> for a target.
<p>
First matching resolver will be returned.
<ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.html#registerResolver-java.lang.String-java.lang.String-com.djrapitops.plan.delivery.web.resolver.Resolver-"><code>registerResolver(java.lang.String, java.lang.String, com.djrapitops.plan.delivery.web.resolver.Resolver)</code></a> resolvers have higher priority than <ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.html#registerResolverForMatches-java.lang.String-java.util.regex.Pattern-com.djrapitops.plan.delivery.web.resolver.Resolver-"><code>registerResolverForMatches(java.lang.String, java.util.regex.Pattern, com.djrapitops.plan.delivery.web.resolver.Resolver)</code></a>.
<p>
Can be used when making Resolver middleware.</div>
<pre>java.util.List<<ahref="../../../../../com/djrapitops/plan/delivery/web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a>> getResolvers(java.lang.String target)</pre>
<divclass="block">Obtain all Resolvers that match the target.
<p>
If first returns Optional.empty next one should be used.
<li><ahref="../../../../../com/djrapitops/plan/delivery/web/ResolverService.Holder.html"title="class in com.djrapitops.plan.delivery.web"><spanclass="typeNameLink">Next Class</span></a></li>