<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
</span><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">SwaggerPageResolver</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="../../../web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a></span></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(com.djrapitops.plan.delivery.webserver.ResponseFactory)"class="member-name-link">SwaggerPageResolver</a><wbr>(<ahref="../../ResponseFactory.html"title="class in com.djrapitops.plan.delivery.webserver">ResponseFactory</a> responseFactory)</code></div>
<divclass="block">Implement access control if authorization is enabled.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Optional.html"title="class or interface in java.util"class="external-link">Optional</a><<ahref="../../../web/resolver/Response.html"title="class in com.djrapitops.plan.delivery.web.resolver">Response</a>></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#resolve(com.djrapitops.plan.delivery.web.resolver.request.Request)"class="member-name-link">resolve</a><wbr>(<ahref="../../../web/resolver/request/Request.html"title="class in com.djrapitops.plan.delivery.web.resolver.request">Request</a> request)</code></div>
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-com.djrapitops.plan.delivery.web.resolver.Resolver">Methods inherited from interface com.djrapitops.plan.delivery.web.resolver.<ahref="../../../web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a></h3>
</span><spanclass="modifiers">public</span> <spanclass="element-name">SwaggerPageResolver</span><wbr><spanclass="parameters">(<ahref="../../ResponseFactory.html"title="class in com.djrapitops.plan.delivery.webserver">ResponseFactory</a> responseFactory)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">canAccess</span><wbr><spanclass="parameters">(<ahref="../../../web/resolver/request/Request.html"title="class in com.djrapitops.plan.delivery.web.resolver.request">Request</a> request)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../../../web/resolver/Resolver.html#canAccess(com.djrapitops.plan.delivery.web.resolver.request.Request)">Resolver</a></code></span></div>
<divclass="block">Implement access control if authorization is enabled.
<p>
Is not called when access control is not active.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../../../web/resolver/Resolver.html#canAccess(com.djrapitops.plan.delivery.web.resolver.request.Request)">canAccess</a></code> in interface <code><ahref="../../../web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a></code></dd>
<dt>Parameters:</dt>
<dd><code>request</code> - HTTP request, contains all information necessary to check access.</dd>
<dt>Returns:</dt>
<dd>true if allowed or invalid target, false if response should be 403 (forbidden)</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list-long">
<li><ahref="../../../web/resolver/request/Request.html#getUser()"><code>for WebUser that has access permissions.</code></a></li>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Optional.html"title="class or interface in java.util"class="external-link">Optional</a><<ahref="../../../web/resolver/Response.html"title="class in com.djrapitops.plan.delivery.web.resolver">Response</a>></span> <spanclass="element-name">resolve</span><wbr><spanclass="parameters">(<ahref="../../../web/resolver/request/Request.html"title="class in com.djrapitops.plan.delivery.web.resolver.request">Request</a> request)</span></div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../../../web/resolver/Resolver.html#resolve(com.djrapitops.plan.delivery.web.resolver.request.Request)">Resolver</a></code></span></div>
<dd><code><ahref="../../../web/resolver/Resolver.html#resolve(com.djrapitops.plan.delivery.web.resolver.request.Request)">resolve</a></code> in interface <code><ahref="../../../web/resolver/Resolver.html"title="interface in com.djrapitops.plan.delivery.web.resolver">Resolver</a></code></dd>
<dt>Parameters:</dt>
<dd><code>request</code> - HTTP request, contains all information necessary to resolve the request.</dd>
<dt>Returns:</dt>
<dd>Response or empty if the response should be 404 (not found).</dd>
<dt>See Also:</dt>
<dd>
<ulclass="see-list-long">
<li><ahref="../../../web/resolver/Response.html"title="class in com.djrapitops.plan.delivery.web.resolver"><code>for return value</code></a></li>