Package org.codelibs.fess.api.v2.handlers
package org.codelibs.fess.api.v2.handlers
-
ClassDescriptionHandles
GET /api/v2/cache/{docId}.HandlesPOST /api/v2/chat— non-streaming RAG chat.Parsed view of a chat request body shared byChatHandlerandChatStreamHandler.Base for chat request body validation errors that map to HTTP 400.Thrown when session_id exceeds the maximum length or contains invalid characters.Thrown when the requestmessageexceedsrag.chat.message.max.length.Thrown when an array parameter (extra_queries, fields.label) exceeds the count or per-element length limit.HandlesDELETE /api/v2/chat/sessions/{session_id}— clears the conversation history for a specific chat session.HandlesPOST /api/v2/chat/stream— Server-Sent Events streaming RAG chat.HandlesPOST /api/v2/click.Static decision table for spec §7.3 CSRF rules.Shared validation for thedoc_idparameter used by the document-keyed v2 handlers (CacheHandler,ClickHandler,FavoriteGetHandler,FavoritePostHandler).HandlesGET /api/v2/documents/{docId}/favorite.HandlesPOST /api/v2/documents/{docId}/favorite.HandlesGET /api/v2/favorites.Handles the/api/v2/healthendpoint.Thrown when a v2 API request parameter violates a length, item-count, or format constraint.Handles the/api/v2/labelsendpoint.HandlesPOST /api/v2/auth/login.In-memory, per-instance rate limiter for /api/v2/auth/login (and /auth/password).Rate-limit scope: distinguishes the bucket namespace so the samekeyvalue (e.g.HandlesPOST /api/v2/auth/logout.HandlesGET /api/v2/auth/me.Baseline same-origin / allow-listed-origin decision for the v2 CSRF Origin check.HandlesPOST /api/v2/auth/password.Handles the/api/v2/popular-wordsendpoint.HandlesGET /api/v2/related-content.HandlesGET /api/v2/related-queries.Handles the/api/v2/documents/allendpoint — streaming scroll search.Handles the/api/v2/searchendpoint.Handles the/api/v2/suggest-wordsendpoint.Builds the canonical self-origin set (trustedSameOrigins) for the v2 CSRF Origin check.HandlesGET /api/v2/ui/config.Shared helper that produces the canonical v2 user JSON shape.Reads a JSON-encoded request body into a Map and returns it.Thrown when the request body is not parseable as JSON.Thrown when the request body exceeds the configured maximum byte size.Thrown when the requestContent-Typeis notapplication/json.Search request parameters for the/api/v2surface.Thrown byV2JsonRequestParams.getOffset()orV2JsonRequestParams.getStartPosition()when theoffset/startparameter is present but negative.Stateless helpers that enforce length/item-count bounds on v2 request parameters, throwingInvalidRequestParameterExceptionon violation.