public class ArtifactsWebUtil
extends java.lang.Object
/download/[module]/[build id]:id/ /download/[module]/[build id].tcbuildid/ /download/[module]/.lastFinished/ /download/[module]/[build number]/To handle these requests the client needs to split the path on tokens (see
preparePath(HttpServletRequest)
),
and look up the build type (lookupBuildConfiguration(String, SBuildServer)
) and build
(getBuild(String, SBuildType, HttpServletRequest, SBuildServer, RevisionRuleBuildFinders)
) passing
[module]
and [revision]
into them.Constructor and Description |
---|
ArtifactsWebUtil() |
Modifier and Type | Method and Description |
---|---|
static SBuild |
findScopeBuild(javax.servlet.http.HttpServletRequest request,
SBuildServer server) |
static SBuild |
getBuild(java.lang.String revision,
SBuildType buildType,
javax.servlet.http.HttpServletRequest request,
SBuildServer server,
RevisionRuleBuildFinders buildFinders) |
static SBuildType |
lookupBuildConfiguration(java.lang.String module,
SBuildServer server) |
static java.lang.String |
preparePath(javax.servlet.http.HttpServletRequest request) |
@Nullable public static SBuildType lookupBuildConfiguration(@NotNull java.lang.String module, @NotNull SBuildServer server)
@Nullable public static SBuild getBuild(@NotNull java.lang.String revision, @NotNull SBuildType buildType, @NotNull javax.servlet.http.HttpServletRequest request, @NotNull SBuildServer server, @NotNull RevisionRuleBuildFinders buildFinders)
@Nullable public static SBuild findScopeBuild(@NotNull javax.servlet.http.HttpServletRequest request, @NotNull SBuildServer server)
@NotNull public static java.lang.String preparePath(@NotNull javax.servlet.http.HttpServletRequest request)