Package org.broadleafcommerce.common
Class RequestDTOImpl
java.lang.Object
org.broadleafcommerce.common.RequestDTOImpl
- All Implemented Interfaces:
Serializable
,RequestDTO
Created by bpolster.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequestDTOImpl
(jakarta.servlet.http.HttpServletRequest request) RequestDTOImpl
(org.springframework.web.context.request.WebRequest request) -
Method Summary
Modifier and TypeMethodDescriptionBy default, converts the properties onisSecure()
void
setFullUrlWithQueryString
(String fullUrlWithQueryString) void
setRequestContextAttributes
(Map<String, String> requestContextAttributes) void
setRequestURI
(String requestURI) void
-
Constructor Details
-
RequestDTOImpl
public RequestDTOImpl() -
RequestDTOImpl
public RequestDTOImpl(jakarta.servlet.http.HttpServletRequest request) -
RequestDTOImpl
public RequestDTOImpl(org.springframework.web.context.request.WebRequest request)
-
-
Method Details
-
getRequestURI
- Specified by:
getRequestURI
in interfaceRequestDTO
- Returns:
- returns the request not including the protocol, domain, or query string
-
setRequestURI
-
getFullUrLWithQueryString
- Specified by:
getFullUrLWithQueryString
in interfaceRequestDTO
- Returns:
- Returns the URL and parameters.
-
isSecure
- Specified by:
isSecure
in interfaceRequestDTO
- Returns:
- true if this request came in through HTTPS
-
getRequestContextAttributes
- Specified by:
getRequestContextAttributes
in interfaceRequestDTO
-
setRequestContextAttributes
- Specified by:
setRequestContextAttributes
in interfaceRequestDTO
-
getFullUrlWithQueryString
-
setFullUrlWithQueryString
-
getSecure
-
setSecure
-
getProperties
Description copied from interface:RequestDTO
By default, converts the properties on- Specified by:
getProperties
in interfaceRequestDTO
- Returns:
-