<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">ResponseBuilder</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></span></div>
<divclass="col-second even-row-color"><code><spanclass="member-name-link"><ahref="ResponseBuilder.InvalidResponseException.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder.InvalidResponseException</a></span></code></div>
<divclass="block">Thrown when <ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver"><code>ResponseBuilder</code></a> is missing some parameters.</div>
<divclass="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#redirectTo(java.lang.String)">redirectTo</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> url)</code></div>
<divclass="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#setContent(java.lang.String)">setContent</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> utf8String)</code></div>
<divclass="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#setContent(java.lang.String,java.nio.charset.Charset)">setContent</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> content,
<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/charset/Charset.html"title="class or interface in java.nio.charset"class="external-link">Charset</a> charset)</code></div>
<divclass="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#setHeader(java.lang.String,java.lang.Object)">setHeader</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> header,
<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> value)</code></div>
<divclass="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#setJSONContent(java.lang.Object)">setJSONContent</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> objectToSerialize)</code></div>
<divclass="col-first even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second even-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#setJSONContent(java.lang.String)">setJSONContent</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> json)</code></div>
<divclass="col-first odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></code></div>
<divclass="col-second odd-row-color method-summary-table-tab2 method-summary-table-tab4 method-summary-table"><code><spanclass="member-name-link"><ahref="#setMimeType(java.lang.String)">setMimeType</a></span>​(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> mimeType)</code></div>
<h3id="methods.inherited.from.class.java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/16/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/16/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/16/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/16/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/16/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/16/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/16/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/16/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/16/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/16/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/16/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/16/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="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setMimeType</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> mimeType)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setStatus</span>​<spanclass="parameters">(int code)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setHeader</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> header,
<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> value)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">redirectTo</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> url)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setContent</span>​<spanclass="parameters">(<ahref="../resource/WebResource.html"title="interface in com.djrapitops.plan.delivery.web.resource">WebResource</a> resource)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setContent</span>​<spanclass="parameters">(byte[] bytes)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setContent</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> utf8String)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setContent</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> content,
<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/nio/charset/Charset.html"title="class or interface in java.nio.charset"class="external-link">Charset</a> charset)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setJSONContent</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> objectToSerialize)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="ResponseBuilder.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder</a></span> <spanclass="element-name">setJSONContent</span>​<spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> json)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="Response.html"title="class in com.djrapitops.plan.delivery.web.resolver">Response</a></span> <spanclass="element-name">build</span>()</div>
<dd><code><ahref="ResponseBuilder.InvalidResponseException.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder.InvalidResponseException</a></code> - if content was not defined (not even empty byte array).</dd>
<dd><code><ahref="ResponseBuilder.InvalidResponseException.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder.InvalidResponseException</a></code> - if content has bytes, but MIME-type is not defined.</dd>
<dd><code><ahref="ResponseBuilder.InvalidResponseException.html"title="class in com.djrapitops.plan.delivery.web.resolver">ResponseBuilder.InvalidResponseException</a></code> - if status code is outside range 100-599.</dd>