Package jetbrains.buildServer.web
Class CsrfCheck.CheckResult
- java.lang.Object
-
- jetbrains.buildServer.web.CsrfCheck.CheckResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDetailsMessage()voidhandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)booleanisSafe()booleanisUnsafe()static CsrfCheck.CheckResultsafe()booleanshouldHandleResponse()static CsrfCheck.CheckResultunsafe(String details)static CsrfCheck.CheckResultunsafeHandling(String details, CsrfCheck.Handler handler)Creates result that will handle the request and response itself (is no other checks report the request as sfe)
-
-
-
Method Detail
-
safe
public static CsrfCheck.CheckResult safe()
-
unsafe
public static CsrfCheck.CheckResult unsafe(@NotNull String details)
-
unsafeHandling
public static CsrfCheck.CheckResult unsafeHandling(@NotNull String details, @NotNull CsrfCheck.Handler handler)
Creates result that will handle the request and response itself (is no other checks report the request as sfe)
-
isSafe
public boolean isSafe()
-
isUnsafe
public boolean isUnsafe()
-
getDetailsMessage
@NotNull public String getDetailsMessage()
-
shouldHandleResponse
public boolean shouldHandleResponse()
-
handle
public void handle(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull javax.servlet.http.HttpServletResponse response) throws IOException- Throws:
IOException
-
-