Class Request
java.lang.Object
com.atlassian.plugin.webresource.impl.support.http.Request
Possibly would be replaced by original request, currently original request is hard to use because parsed `path` and
`params` not available on it, it also hides some other implementation details that wont be needed after the
refactoring.
Also after the refactoring it would contain the `state` object - the only thing that will change during the request, all other resources would be stateless.
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanjavax.servlet.http.HttpServletRequestgetPath()Build a string that represents the request.getType()static StringgetUrl()inthashCode()booleanbooleanvoidsetRelativeResourceName(String resourceName) voidsetRequestedResources(RawRequest request) voidsetServingType(ServingType servingType)
-
Constructor Details
-
Request
-
Request
-
-
Method Details
-
getType
- Parameters:
path- path of HTTP request.- Returns:
- type of request, `js`, `css`, determined same as file type / extension.
-
getPath
- Returns:
- path of HTTP request, part of URL without query string.
-
getParams
- Returns:
- HTTP params.
-
getOriginalRequest
public javax.servlet.http.HttpServletRequest getOriginalRequest() -
getType
- Returns:
- type of request, `js`, `css`, determined same as file type / extension.
-
isSourceMap
public boolean isSourceMap() -
getContentType
-
getUrl
- Returns:
- URL of HTTP request, with query string.
-
isCacheable
public boolean isCacheable() -
getGlobals
-
getServingType
-
setServingType
-
setRequestedResources
-
getRelativeResourceName
-
setRelativeResourceName
-
getRequestHash
Build a string that represents the request. If two requests are logically equivalent, it will return the same value. This is useful for caches.- Returns:
- a hashed string representing the unique aspects of the request.
-
equals
-
hashCode
public int hashCode()
-