Package com.atlassian.bamboo.filter
Class UrlRewriteFilter
- java.lang.Object
-
- com.atlassian.bamboo.filter.UrlRewriteFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class UrlRewriteFilter extends Object implements javax.servlet.Filter
-
-
Field Summary
Fields Modifier and Type Field Description static StringACTION_AGGREGATEstatic StringACTION_ARTIFACTstatic StringACTION_AUTHORstatic StringACTION_BRANCHESstatic StringACTION_COMMENTstatic StringACTION_COMMITstatic StringACTION_CONFIGstatic StringACTION_DEPLOYMENTSstatic StringACTION_EDIT_CONFIGstatic StringACTION_FAILURESstatic StringACTION_HISTORYstatic StringACTION_ISSUESstatic StringACTION_LABELstatic StringACTION_LATESTstatic StringACTION_LATEST_SUCCESSFULstatic StringACTION_LOGstatic StringACTION_METADATAstatic StringACTION_PLAN_LOGstatic StringACTION_QUARANTINEstatic StringACTION_REPOSITORIESstatic StringACTION_STAGESstatic StringACTION_TESTstatic StringACTION_TEST_CASEstatic StringACTION_USERstatic StringACTION_WEBHOOKSstatic StringFILTER_MAP_PREFIXstatic StringORIGINAL_URL_PROP
-
Constructor Summary
Constructors Constructor Description UrlRewriteFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)static Map<Pattern,String>getBuildableUrlMappings()static Map<Pattern,String>getChainUrlMappings()@Nullable StringgetKey(String patternString, String replacement, String path)@Nullable PlanKeygetPlanKey(String path)voidinit(javax.servlet.FilterConfig filterConfig)@Nullable StringparseUrl(@NotNull String servletPath)
-
-
-
Field Detail
-
ORIGINAL_URL_PROP
public static final String ORIGINAL_URL_PROP
- See Also:
- Constant Field Values
-
FILTER_MAP_PREFIX
public static final String FILTER_MAP_PREFIX
- See Also:
- Constant Field Values
-
ACTION_LABEL
public static final String ACTION_LABEL
- See Also:
- Constant Field Values
-
ACTION_FAILURES
public static final String ACTION_FAILURES
- See Also:
- Constant Field Values
-
ACTION_HISTORY
public static final String ACTION_HISTORY
- See Also:
- Constant Field Values
-
ACTION_COMMIT
public static final String ACTION_COMMIT
- See Also:
- Constant Field Values
-
ACTION_LOG
public static final String ACTION_LOG
- See Also:
- Constant Field Values
-
ACTION_WEBHOOKS
public static final String ACTION_WEBHOOKS
- See Also:
- Constant Field Values
-
ACTION_PLAN_LOG
public static final String ACTION_PLAN_LOG
- See Also:
- Constant Field Values
-
ACTION_CONFIG
public static final String ACTION_CONFIG
- See Also:
- Constant Field Values
-
ACTION_EDIT_CONFIG
public static final String ACTION_EDIT_CONFIG
- See Also:
- Constant Field Values
-
ACTION_STAGES
public static final String ACTION_STAGES
- See Also:
- Constant Field Values
-
ACTION_BRANCHES
public static final String ACTION_BRANCHES
- See Also:
- Constant Field Values
-
ACTION_QUARANTINE
public static final String ACTION_QUARANTINE
- See Also:
- Constant Field Values
-
ACTION_AGGREGATE
public static final String ACTION_AGGREGATE
- See Also:
- Constant Field Values
-
ACTION_DEPLOYMENTS
public static final String ACTION_DEPLOYMENTS
- See Also:
- Constant Field Values
-
ACTION_REPOSITORIES
public static final String ACTION_REPOSITORIES
- See Also:
- Constant Field Values
-
ACTION_ISSUES
public static final String ACTION_ISSUES
- See Also:
- Constant Field Values
-
ACTION_LATEST
public static final String ACTION_LATEST
- See Also:
- Constant Field Values
-
ACTION_LATEST_SUCCESSFUL
public static final String ACTION_LATEST_SUCCESSFUL
- See Also:
- Constant Field Values
-
ACTION_TEST
public static final String ACTION_TEST
- See Also:
- Constant Field Values
-
ACTION_TEST_CASE
public static final String ACTION_TEST_CASE
- See Also:
- Constant Field Values
-
ACTION_ARTIFACT
public static final String ACTION_ARTIFACT
- See Also:
- Constant Field Values
-
ACTION_COMMENT
public static final String ACTION_COMMENT
- See Also:
- Constant Field Values
-
ACTION_METADATA
public static final String ACTION_METADATA
- See Also:
- Constant Field Values
-
ACTION_AUTHOR
public static final String ACTION_AUTHOR
- See Also:
- Constant Field Values
-
ACTION_USER
public static final String ACTION_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException- Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
parseUrl
@Nullable public @Nullable String parseUrl(@NotNull @NotNull String servletPath) throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
-
getKey
@Nullable public @Nullable String getKey(String patternString, String replacement, String path)
-
destroy
public void destroy()
- Specified by:
destroyin interfacejavax.servlet.Filter
-
-