java.lang.Object | ||
↳ | com.microstrategy.web.controller.AppControllerImpl | |
↳ | com.microstrategy.web.controller.ResourceFeedController |
Controller for the ResourceFeed servlet
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | INIT_PARAM_CONFIG_FILE | The path the the configuration file | |||||||||
String | INIT_PARAM_DEFAULT_USER_AGENT | This is the name of the init parameter that will use the value of this parameter to set the User-Agent header if the caller is not a browser | |||||||||
String | INIT_PARAM_PROXY_PORT | This is the name of the init parameter that refers to the HTTP proxy port | |||||||||
String | INIT_PARAM_PROXY_URL | This is the name of the init parameter that refers to the HTTP proxy URL | |||||||||
String | PARAM_TRANSFER_AUTH_HEADER | This is the name of the init parameter that indicates if the Authorization header is transferred. | |||||||||
String | SET_STATUS_CODE_FROM_RESPONSE | This is to set the status code from the requested URL if the parameter value is set to true. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ResourceFeedController() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
errorAfterRedirect(RequestState reqState, Exception e)
What to do if there is an error after we have redirected to the
target page.
| ||||||||||
String |
extractDomainName(String url)
Extracts the domain part of a URL
| ||||||||||
String |
getBaseURL(ContainerServices cs)
The Base URL for this application.
| ||||||||||
String |
getPage(RequestState reqState)
Get the relative path to the Page that should be displayed.
| ||||||||||
void |
initializeApp(ContainerServices cs)
Initialize the application.
| ||||||||||
ExternalSecurity |
newExternalSecurity()
Creates a new
ExternalSecurity object. | ||||||||||
RequestState |
newRequestState()
Get a new
RequestState object to handle the incoming
request. | ||||||||||
boolean |
processRequest(RequestState reqState)
Process the incoming request.
| ||||||||||
void |
terminateApp()
Terminate the application.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
contentTypeMatch(String contentType, String contentTypeExpression)
Whether a content type is allowed
A content type is allowed if
| ||||||||||
boolean |
domainMatch(String host, String domainExpression)
Performs domain-match.
| ||||||||||
boolean |
isValidContentType(String contentType)
Determines whether a content type is valid based on the allowed content types on the security policy file
| ||||||||||
boolean |
isValidProtocol(String protocol)
Determines whether a protocol is valid.
| ||||||||||
boolean |
isValidUrl(String url)
Determines whether a URL is valid based on the domains on the security policy file
| ||||||||||
void |
setProxySettings()
Set the proxy settings based on the config parameters
INIT_PARAM_PROXY_URL and
INIT_PARAM_PROXY_PORT
| ||||||||||
boolean | skipHeader(String key) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
The path the the configuration file
This is the name of the init parameter that will use the value of this parameter to set the User-Agent header if the caller is not a browser
This is the name of the init parameter that refers to the HTTP proxy port
This is the name of the init parameter that refers to the HTTP proxy URL
This is the name of the init parameter that indicates if the Authorization header is transferred.
This is to set the status code from the requested URL if the parameter value is set to true.
What to do if there is an error after we have redirected to the target page.
reqState | The RequestState object that holds per-request
data. |
---|---|
e | The Exception was raised. |
Extracts the domain part of a URL
url | the URL |
---|
The Base URL for this application.
cs | The ContainerServices object that exposes a variety of
services. |
---|
Get the relative path to the Page that should be displayed.
reqState | The RequestState object that contains
per-request data structures. |
---|
Initialize the application.
cs | The ContainerServices object to use to complete the
initialization.
|
---|
Creates a new ExternalSecurity
object.
ExternalSecurity
object.
Get a new RequestState
object to handle the incoming
request.
RequestState
object to handle the incoming
request.
Process the incoming request.
reqState | The RequestState object that holds per-request
data. |
---|
Terminate the application.
Whether a content type is allowed
A content type is allowed if
contentType | the content typre returned by the request |
---|---|
contentTypeExpression | the expression read form the security policy file |
Performs domain-match.
Host A's name domain-matches host B's if their host name strings string-compare equal
host | host name where request is being sent to. |
---|---|
domainExpression | The domain expression read for the policy file |
Determines whether a content type is valid based on the allowed content types on the security policy file
contentType | the content type to evaluate |
---|
Determines whether a protocol is valid. Default implementation only allows http and https requests.
protocol | the protocol to evaluate |
---|
Determines whether a URL is valid based on the domains on the security policy file
url | the URL to evaluate |
---|
Set the proxy settings based on the config parameters INIT_PARAM_PROXY_URL
and
INIT_PARAM_PROXY_PORT