Package io.jenkins.plugins.mcp.server
Class Endpoint
java.lang.Object
hudson.security.csrf.CrumbExclusion
io.jenkins.plugins.mcp.server.Endpoint
- All Implemented Interfaces:
ExtensionPoint
,Action
,ModelObject
,RootAction
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
@Extension
public class Endpoint
extends CrumbExclusion
implements RootAction
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getRequestedResourcePath
(jakarta.servlet.http.HttpServletRequest httpServletRequest) protected void
handleMessage
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected void
handleSSE
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) protected void
init()
boolean
process
(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) Methods inherited from class hudson.security.csrf.CrumbExclusion
all, process
-
Field Details
-
MCP_SERVER
- See Also:
-
SSE_ENDPOINT
- See Also:
-
MCP_SERVER_SSE
- See Also:
-
STREAMABLE_ENDPOINT
- See Also:
-
MCP_SERVER_STREAMABLE
- See Also:
-
MCP_SERVER_MESSAGE
- See Also:
-
USER_ID
- See Also:
-
-
Constructor Details
-
Endpoint
public Endpoint() throws jakarta.servlet.ServletException- Throws:
jakarta.servlet.ServletException
-
-
Method Details
-
getRequestedResourcePath
public static String getRequestedResourcePath(jakarta.servlet.http.HttpServletRequest httpServletRequest) -
process
public boolean process(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Overrides:
process
in classCrumbExclusion
- Throws:
IOException
jakarta.servlet.ServletException
-
init
protected void init() throws jakarta.servlet.ServletException- Throws:
jakarta.servlet.ServletException
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
handleSSE
protected void handleSSE(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-
handleMessage
protected void handleMessage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException - Throws:
IOException
jakarta.servlet.ServletException
-