com.microstrategy.web.platform.ContainerServices |
![]() |
This interfaces exposes, in a generic fashion, the services of any web application container. Whether the container is a servlet engine (Java) or a non-Java server (such as IIS), the methods exposed by this interface allow the caller to be unaware of the actual provider and the mechanics behind those calls. Each instances of this interface is associated with a request.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | SPNEGO_CREDENTIAL |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
addCookieToResponse(GenericCookie cookie)
This method associates a platform-independent Cookie with a response.
| ||||||||||
abstract Object |
getApplicationAttribute(String name)
This method returns the value of an Application Attribute.
| ||||||||||
abstract String |
getApplicationPath()
This method returns the full application path of the servlet
| ||||||||||
abstract int |
getCodePage()
Returns an integer that represents the character formatting codepage.
| ||||||||||
abstract GenericCookie |
getCookie(String cookieName)
This method retrieves a platform-independent Cookie with a specific name.
| ||||||||||
abstract GenericCookie |
getCookie(String cookieName, ContainerServicesNamespace namespace)
This method retrieves a platform-independent Cookie with a specific name.
| ||||||||||
abstract ContainerStringCollection |
getCookieStrings(ContainerServicesNamespace namespace)
This method returns the contents of all Cookies as a collection of
sub strings (as name/value pairs).
| ||||||||||
abstract ContainerStringCollection |
getCookieStrings()
This method returns the contents of all Cookies as a collection of
sub strings (as name/value pairs).
| ||||||||||
abstract ContainerStringCollection |
getFormAndQueryStrings()
This method returns the contents of the Form Data and Query String as a collection of
sub strings (as name/value pairs).
| ||||||||||
abstract String |
getHeaderValue(String headerName)
This method returns the value of the requested header
| ||||||||||
abstract String |
getMethod()
Return the request's method is post or get
| ||||||||||
abstract OutputStream | getOutputStream() | ||||||||||
abstract PostedFile |
getPostedFile(String name)
Provides a way to access individual files that have been uploaded by a client.
| ||||||||||
abstract String |
getQueryString()
This method returns the entire Query String.
| ||||||||||
abstract String |
getRemoteAddress()
This method returns the client IP address
| ||||||||||
abstract Object |
getRequestAttribute(String name)
This method returns the value of a Request Attribute.
| ||||||||||
abstract String |
getRequestServerName()
This method returns the Web Server Name from the request object
| ||||||||||
abstract ContainerStringCollection |
getServerVariables()
Returns a collection of server variables.
| ||||||||||
abstract Object |
getSessionAttribute(String name, ContainerServicesNamespace namespace)
This method returns the value of a Session Attribute.
| ||||||||||
abstract Object |
getSessionAttribute(String name)
This method returns the value of a Session Attribute.
| ||||||||||
abstract String |
getSessionID()
Returns HTTP session ID
| ||||||||||
abstract int |
getSessionMaxIdleTime()
Returns the maximum time interval, in seconds, that the container will keep this session open between client accesses.
| ||||||||||
abstract ContainerStringCollection |
getSessionStrings()
This method returns the contents of the Session Variables as a collection of
sub strings (as name/value pairs).
| ||||||||||
abstract ContainerStringCollection |
getSessionStrings(ContainerServicesNamespace namespace)
This method returns the contents of the Session Variables as a collection of
sub strings (as name/value pairs) from the namespace specified.
| ||||||||||
abstract int |
getStatusCode()
Returns the HTTP Status code specified for this response.
| ||||||||||
abstract boolean | hasOutputStream() | ||||||||||
abstract void |
invalidateHttpSession()
If the security preference is selected, invalidate and create new http session in jsp part
set a flag to show whether a new session need to be created in asp part
| ||||||||||
abstract boolean |
isJavaURLSessionSupported()
This method is deprecated.
Cookieless mode is insecure. Deprecating feature.
| ||||||||||
abstract boolean |
isQueryParam(String pName)
Returns a boolean indicating whether the input parameter is found in the query
| ||||||||||
abstract boolean |
isRequestSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS
| ||||||||||
abstract boolean |
isSessionlessRequest()
Does the request has a pre-established session id.
| ||||||||||
abstract GenericCookie |
newCookie(String cookieName, String cookieValue, ContainerServicesNamespace namespace)
This method creates a new platform-independent Cookie.
| ||||||||||
abstract GenericCookie |
newCookie(String cookieName, String cookieValue)
This method creates a new platform-independent Cookie.
| ||||||||||
abstract ParameterBuilder |
newHiddenInputParameterBuilder()
Create a new instance of a ParameterBuilder that is suited for building hidden inputs.
| ||||||||||
abstract NamespaceEncoder |
newNamespaceEncoder()
Create a new instance of a NamespaceEncoder that can provide global namespace support.
| ||||||||||
abstract ParameterBuilder |
newURIParameterBuilder()
Create a new instance of a ParameterBuilder that is suited for building URIs.
| ||||||||||
abstract void |
sendBinaryContent(MarkupOutput mo)
Outputs binary content of the MarkupOutput
| ||||||||||
abstract boolean |
sendError(int sc, String msg)
Sends an error response to the client using the specified status code.
| ||||||||||
abstract boolean |
sendError(int sc)
Sends an error response to the client using the specified status code.
| ||||||||||
abstract void |
setApplicationAttribute(String name, Object value)
This method sets the value of a Application Attribute.
| ||||||||||
abstract void |
setCodePage(int code)
Sets the code page, an integer representing the character formatting.
| ||||||||||
abstract void |
setContentType(String type)
Stes HTTP response content type
| ||||||||||
abstract void |
setHeaderValue(String name, String value)
Sets HTTP response header
| ||||||||||
abstract void |
setJavaURLSessionSupported(boolean value)
This method is deprecated.
Cookieless mode is insecure. Deprecating feature.
| ||||||||||
abstract void |
setRequestAttribute(String name, Object value)
This method sets the value of a Request Attribute.
| ||||||||||
abstract void |
setSessionAttribute(String name, Object value, ContainerServicesNamespace namespace)
This method sets the value of a Session Attribute in the given namespace.
| ||||||||||
abstract void |
setSessionAttribute(String name, Object value)
This method sets the value of a Session Attribute.
| ||||||||||
abstract void |
setStatusCode(int statusCode)
Sets the HTTP Status code specified for this response.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This method associates a platform-independent Cookie with a response. When the response is sent back to the client, it will contain this cookie.
cookie | The GenericCookie to be added to the Response.
|
---|
This method returns the value of an Application Attribute.
name | the name of an attribute. |
---|
Object
representing the value of a named application attribute.
This method returns the full application path of the servlet
String
that indicates the full application path
of the servlet. (i.e. http://localhost:8080/MicroStrategy/servlet)
Returns an integer that represents the character formatting codepage. The CodePage property specifies how literal (static) strings are encoded in a Web page. A codepage is a character set that can include numbers, punctuation marks, and other glyphs. Codepages are not the same for each language. Some languages have multi-byte characters, while others only need one byte to represent each character.
This method retrieves a platform-independent Cookie with a specific name.
cookieName | A String which identifies the name of the cookie. |
---|
GenericCookie
for the name supplied. If no cookie exists
with this name, a null
pointer is returned.
This method retrieves a platform-independent Cookie with a specific name.
cookieName | A String which identifies the name of the cookie. |
---|---|
namespace | A ContainerServicesNamespace object represention the namespace requirement. |
GenericCookie
for the name supplied. If no cookie exists
with this name, a null
pointer is returned. This method returns the contents of all Cookies as a collection of sub strings (as name/value pairs).
namespace | A ContainerServicesNamespace object representing the namespace requirement.
If null, no namespace is used. |
---|
ContainerStringCollection
object. This method returns the contents of all Cookies as a collection of sub strings (as name/value pairs).
ContainerStringCollection
object.
This method returns the contents of the Form Data and Query String as a collection of sub strings (as name/value pairs).
ContainerStringCollection
object.
This method returns the value of the requested header
headerName | A String with the name of the header to search for |
---|
String
with the value of the header requested. If the
header was not found, it shall return a null value.
Return the request's method is post or get
Provides a way to access individual files that have been uploaded by a client.
name | a name of posted file |
---|
This method returns the entire Query String.
String
that contains the contents of the Query String.
This method returns the client IP address
String
with the value of the client IP address
This method returns the value of a Request Attribute. In Java, there is a clear distinction between Request and Session variables. In ASP, the two are combined as there is not a similar concept.
name | the name of an attribute. |
---|
Object
representing the value of a named attribute.
This method returns the Web Server Name from the request object
String
that indicates the Web Server Name. (i.e. if you access the web server with the URL
which reads as http://localhost:8080/MicroStrategy/servlet then this method will return "localhost" as the web server name. If you access
the webserver with the URL which reads as http://machine1:8080/MicroStrategy/servlet then this method will return "machine1" as the web server name.
Returns a collection of server variables.
This method returns the value of a Session Attribute. In Java, there is a clear distinction between Request and Session variables. In ASP, the two are combined as there is not a similar concept.
name | the name of an attribute. |
---|---|
namespace | the name of the URL parameter that privides the namespace name. |
Object
representing the value of a named session attribute.This method returns the value of a Session Attribute. In Java, there is a clear distinction between Request and Session variables. In ASP, the two are combined as there is not a similar concept.
name | the name of an attribute. |
---|
Object
representing the value of a named session attribute.
Returns HTTP session ID
Returns the maximum time interval, in seconds, that the container will keep this session open between client accesses.
This method returns the contents of the Session Variables as a collection of sub strings (as name/value pairs). Only those session variables that return values of type String are considered.
ContainerStringCollection
object.
This method returns the contents of the Session Variables as a collection of sub strings (as name/value pairs) from the namespace specified. Only those session variables that return values of type String are considered.
namespace | A ContainerServicesNamespace object representing the namespace requirement. |
---|
ContainerStringCollection
object.Returns the HTTP Status code specified for this response.
If the security preference is selected, invalidate and create new http session in jsp part set a flag to show whether a new session need to be created in asp part
This method is deprecated.
Cookieless mode is insecure. Deprecating feature.
Indicates if the instance of this container services supports cookieless environments
Returns a boolean indicating whether the input parameter is found in the query
pName | name of the parameter to be searched in query |
---|
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS
Does the request has a pre-established session id.
This method creates a new platform-independent Cookie. It is not yet associated with the current Response object.
cookieName | A String which identifies the name of the cookie. |
---|---|
cookieValue | A String representing the value of the cookie. |
namespace | A ContainerServicesNamespace object representing the namespace requirement.
If null, no namespace is used. |
GenericCookie
containing the name/value pair suppliedThis method creates a new platform-independent Cookie. It is not yet associated with the current Response object.
cookieName | A String which identifies the name of the cookie. |
---|---|
cookieValue | A String representing the value of the cookie. |
GenericCookie
containing the name/value pair supplied
Create a new instance of a ParameterBuilder that is suited for building hidden inputs.
Create a new instance of a NamespaceEncoder that can provide global namespace support.
Create a new instance of a ParameterBuilder that is suited for building URIs.
Outputs binary content of the MarkupOutput
mo | markup outpu containing binary image |
---|
Sends an error response to the client using the specified status code.
sc | The errror status code. |
---|---|
msg | The error message. |
true
to indicate this action succeeded. false
to indicate
error in performing this action.
Sends an error response to the client using the specified status code.
sc | The status errror code. We reuse HTTP status code "OK" (200) to mean no error, so please do not use it for any error status. |
---|
true
to indicate this action succeeded. false
to indicate
error in performing this action.
This method sets the value of a Application Attribute.
name | A String which identifies the name of the attribute. |
---|---|
value | An Object representing the value of a named attribute.
|
Sets the code page, an integer representing the character formatting. The CodePage property specifies how literal (static) strings are encoded in a Web page. A codepage is a character set that can include numbers, punctuation marks, and other glyphs. Codepages are not the same for each language. Some languages have multi-byte characters, while others only need one byte to represent each character.
code | an integer that represents the character formatting codepage. |
---|
Stes HTTP response content type
type | content type |
---|
Sets HTTP response header
name | header name |
---|---|
value | header value |
This method is deprecated.
Cookieless mode is insecure. Deprecating feature.
Sets if the instance of this container services supports cookieless environments
value | true if cookieless environment is supported |
---|
This method sets the value of a Request Attribute. In Java, there is a clear distinction between Request and Session variables. In ASP, the two are combined as there is not a similar concept.
name | A String which identifies the name of the attribute. |
---|---|
value | An Object representing the value of a named attribute.
|
This method sets the value of a Session Attribute in the given namespace. In Java, there is a clear distinction between Request and Session variables. In ASP, the two are combined as there is not a similar concept.
name | A String which identifies the name of the attribute. |
---|---|
value | An Object representing the value of a named attribute. |
namespace | A ContainerServicesNamespace object representing the namespace requirement.
If null, no namespace is used. |
This method sets the value of a Session Attribute. In Java, there is a clear distinction between Request and Session variables. In ASP, the two are combined as there is not a similar concept.
name | A String which identifies the name of the attribute. |
---|---|
value | An Object representing the value of a named attribute.
|
Sets the HTTP Status code specified for this response.
statusCode | the HTTP Status code specified for this response. |
---|