Package net.stoerr.chatgpt.codevengine
Class ReplaceAction
- java.lang.Object
-
- jakarta.servlet.GenericServlet
-
- jakarta.servlet.http.HttpServlet
-
- net.stoerr.chatgpt.codevengine.AbstractPluginAction
-
- net.stoerr.chatgpt.codevengine.ReplaceAction
-
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
public class ReplaceAction extends AbstractPluginAction
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReplaceAction.ReplaceInFileRequeststatic classReplaceAction.Replacement
-
Field Summary
-
Fields inherited from class net.stoerr.chatgpt.codevengine.AbstractPluginAction
BINARY_FILES_PATTERN, gitIgnoreRules
-
-
Constructor Summary
Constructors Constructor Description ReplaceAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)StringgetUrl()The URL it is deployed at, e.g.StringopenApiDescription()The OpenAPI description for this operation.-
Methods inherited from class net.stoerr.chatgpt.codevengine.AbstractPluginAction
abbreviate, findMatchingFiles, getBodyParameter, getMandatoryQueryParam, getPath, getQueryParam, getSimilarFilesMessage, gitIgnored, isIgnored, isNotEmpty, sendError
-
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getUrl
public String getUrl()
Description copied from class:AbstractPluginActionThe URL it is deployed at, e.g. /listFiles.- Specified by:
getUrlin classAbstractPluginAction
-
openApiDescription
public String openApiDescription()
Description copied from class:AbstractPluginActionThe OpenAPI description for this operation.- Specified by:
openApiDescriptionin classAbstractPluginAction
-
doPost
protected void doPost(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws IOException- Overrides:
doPostin classjakarta.servlet.http.HttpServlet- Throws:
IOException
-
-