@@ -204,53 +204,10 @@ default Object execute(@NonNull Context context) {
204204 */
205205 @ NonNull String getContextPath ();
206206
207- /**
208- * When true handles X-Forwarded-* headers by updating the values on the current context to match
209- * what was sent in the header(s).
210- *
211- * <p>This should only be installed behind a reverse proxy that has been configured to send the
212- * <code>X-Forwarded-*</code> header, otherwise a remote user can spoof their address by sending a
213- * header with bogus values.
214- *
215- * <p>The headers that are read/set are:
216- *
217- * <ul>
218- * <li>X-Forwarded-For: Set/update the remote address {@link Context#setRemoteAddress(String)}.
219- * <li>X-Forwarded-Proto: Set/update request scheme {@link Context#setScheme(String)}.
220- * <li>X-Forwarded-Host: Set/update the request host {@link Context#setHost(String)}.
221- * <li>X-Forwarded-Port: Set/update the request port {@link Context#setPort(int)}.
222- * </ul>
223- *
224- * @return True when enabled. Default is false.
225- */
226- boolean isTrustProxy ();
227-
228207 boolean isStarted ();
229208
230209 boolean isStopped ();
231210
232- /**
233- * When true handles X-Forwarded-* headers by updating the values on the current context to match
234- * what was sent in the header(s).
235- *
236- * <p>This should only be installed behind a reverse proxy that has been configured to send the
237- * <code>X-Forwarded-*</code> header, otherwise a remote user can spoof their address by sending a
238- * header with bogus values.
239- *
240- * <p>The headers that are read/set are:
241- *
242- * <ul>
243- * <li>X-Forwarded-For: Set/update the remote address {@link Context#setRemoteAddress(String)}.
244- * <li>X-Forwarded-Proto: Set/update request scheme {@link Context#setScheme(String)}.
245- * <li>X-Forwarded-Host: Set/update the request host {@link Context#setHost(String)}.
246- * <li>X-Forwarded-Port: Set/update the request port {@link Context#setPort(int)}.
247- * </ul>
248- *
249- * @param trustProxy True to enable.
250- * @return This router.
251- */
252- @ NonNull Router setTrustProxy (boolean trustProxy );
253-
254211 /**
255212 * Provides a way to override the current HTTP method. Request must be:
256213 *
@@ -280,15 +237,6 @@ default Object execute(@NonNull Context context) {
280237 */
281238 @ NonNull Router setCurrentUser (@ NonNull Function <Context , Object > provider );
282239
283- /**
284- * If enabled, allows to retrieve the {@link Context} object associated with the current request
285- * via the service registry while the request is being processed.
286- *
287- * @param contextAsService whether to enable or disable this feature
288- * @return This router.
289- */
290- @ NonNull Router setContextAsService (boolean contextAsService );
291-
292240 /* ***********************************************************************************************
293241 * use(Router)
294242 * ***********************************************************************************************
@@ -304,7 +252,8 @@ default Object execute(@NonNull Context context) {
304252 * }
305253 * }</pre>
306254 *
307- * NOTE: if you run behind a reverse proxy you might to enabled {@link #setTrustProxy(boolean)}.
255+ * NOTE: if you run behind a reverse proxy you might to enabled {@link
256+ * RouterOptions#setTrustProxy(boolean)}.
308257 *
309258 * <p>NOTE: ONLY routes are imported. Services, callback, etc.. are ignored.
310259 *
@@ -328,7 +277,8 @@ default Object execute(@NonNull Context context) {
328277 * }
329278 * }</pre>
330279 *
331- * NOTE: if you run behind a reverse proxy you might to enabled {@link #setTrustProxy(boolean)}.
280+ * NOTE: if you run behind a reverse proxy you might to enabled {@link
281+ * RouterOptions#setTrustProxy(boolean)}.
332282 *
333283 * @param domain Predicate
334284 * @param body Route action.
@@ -352,7 +302,7 @@ default Object execute(@NonNull Context context) {
352302 * Imported routes are matched only when predicate pass.
353303 *
354304 * <p>NOTE: if you run behind a reverse proxy you might to enabled {@link
355- * #setTrustProxy(boolean)}.
305+ * RouterOptions #setTrustProxy(boolean)}.
356306 *
357307 * <p>NOTE: ONLY routes are imported. Services, callback, etc.. are ignored.
358308 *
@@ -379,7 +329,8 @@ default Object execute(@NonNull Context context) {
379329 * }
380330 * }</pre>
381331 *
382- * NOTE: if you run behind a reverse proxy you might to enabled {@link #setTrustProxy(boolean)}.
332+ * NOTE: if you run behind a reverse proxy you might to enabled {@link
333+ * RouterOptions#setTrustProxy(boolean)}.
383334 *
384335 * <p>NOTE: ONLY routes are imported. Services, callback, etc.. are ignored.
385336 *
@@ -852,9 +803,7 @@ default Object execute(@NonNull Context context) {
852803 @ NonNull Router setRouterOptions (@ NonNull RouterOptions options );
853804
854805 /**
855- * Session store. Default use a cookie ID with a memory storage.
856- *
857- * <p>See {@link SessionStore#memory()}.
806+ * Session store. Default is {@link SessionStore#UNSUPPORTED}.
858807 *
859808 * @return Session store.
860809 */
0 commit comments