@Deprecated public interface

CurrentRequestResolver

com.atlassian.stash.web.CurrentRequestResolver

This interface is deprecated.
will be removed in 3.0. Use SAL's com.atlassian.sal.api.web.context.HttpContext HttpContext or getRequestContext() instead.

Class Overview

Resolves the currently executing HTTP request.

Summary

Public Methods
@Nullable HttpServletRequest getCurrentRequest()
CAUTION: This method will return null if there is no currently executing request.

Public Methods

@Nullable public HttpServletRequest getCurrentRequest ()

CAUTION: This method will return null if there is no currently executing request. You should always always be null-checking the returned value unless you are absolutely certain your code will never be called outside of a request thread (e.g. by the mail queue thread, a quartz job, etc.)

Returns
  • the currently executing request, or null if this is executed outside of a request thread.