public class Request extends Object
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.
| Constructor and Description |
|---|
Request(Globals globals,
javax.servlet.http.HttpServletRequest request,
String encoding) |
Request(Globals globals,
String path,
Map<String,String> params) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getContentType() |
Globals |
getGlobals() |
javax.servlet.http.HttpServletRequest |
getOriginalRequest() |
Map<String,String> |
getParams() |
String |
getPath() |
String |
getRelativeResourceName() |
String |
getRequestHash()
Build a string that represents the request.
|
ServingType |
getServingType() |
String |
getType() |
static String |
getType(String path) |
String |
getUrl() |
int |
hashCode() |
boolean |
isCacheable() |
boolean |
isSourceMap() |
void |
setRelativeResourceName(String resourceName) |
void |
setRequestedResources(Collection<String> included)
Deprecated.
use
setRequestedResources(RawRequest) instead. |
void |
setRequestedResources(Collection<String> included,
Collection<String> excluded)
Deprecated.
use
setRequestedResources(RawRequest) instead. |
void |
setRequestedResources(RawRequest request) |
void |
setServingType(ServingType servingType) |
public static String getType(String path)
path - path of HTTP request.public String getPath()
public javax.servlet.http.HttpServletRequest getOriginalRequest()
public String getType()
public boolean isSourceMap()
public String getContentType()
public String getUrl()
public boolean isCacheable()
public Globals getGlobals()
public ServingType getServingType()
public void setServingType(ServingType servingType)
public void setRequestedResources(Collection<String> included)
setRequestedResources(RawRequest) instead.included - the resources to include in the ultimate response.public void setRequestedResources(Collection<String> included, Collection<String> excluded)
setRequestedResources(RawRequest) instead.included - the resources to include in the ultimate response.excluded - ensure these resources are not included in the ultimate response.public void setRequestedResources(RawRequest request)
public String getRelativeResourceName()
public void setRelativeResourceName(String resourceName)
public String getRequestHash()
Copyright © 2024 Atlassian. All rights reserved.