|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IBaseRequestContext
A base request context that provides access to common entities of a web application, a portlet, a WSRP SOAP request message, and the Producer.It also provides methods to add new http headers or modify existing headers.
Note: The headers "Content-Type", "User-Agent", "Cookie", "Accept", "Authorization", and "SOAPAction" are NOT ALLOWED to add or modify.
| Method Summary | |
|---|---|
void |
addMimeHeader(String name,
String value)
Adds an http header with the supplied name and the supplied value to
the underlying SOAP message. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Returns the http request associated with this context. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Returns the http response associated with this context. |
Map<String,List<String>> |
getMimeHeaders()
Returns a map of http header names and a list of values associated with a header. |
List<String> |
getMimeHeaders(String name)
Returns the list of values associated with the supplied name. |
com.bea.wsrp.config.ProducerInfo |
getProducerInfo()
Returns the information about the Producer to which a SOAP request message is being sent. |
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext to which this context belongs. |
void |
removeMimeHeader(String name)
Removes the given header. |
void |
setMimeHeader(String name,
String value)
Associates the supplied value to an http header identified by the supplied
name. |
| Methods inherited from interface com.bea.wsrp.model.IMutableRegistrationContext |
|---|
setRegistrationHandle, setRegistrationState |
| Methods inherited from interface com.bea.wsrp.model.IRegistrationContext |
|---|
getRegistrationHandle, getRegistrationState |
| Methods inherited from interface com.bea.wsrp.model.INillable |
|---|
isNil |
| Methods inherited from interface com.bea.wsrp.model.markup.IUserContext |
|---|
getUserContextKey, getUserProfile, setUserContextKey |
| Methods inherited from interface com.bea.wsrp.model.INillable |
|---|
isNil |
| Methods inherited from interface com.bea.wsrp.bind.IPortletContextHolder |
|---|
getPortletContext |
| Method Detail |
|---|
javax.servlet.http.HttpServletRequest getHttpServletRequest()
javax.servlet.http.HttpServletResponse getHttpServletResponse()
javax.servlet.http.HttpServletResponse.getOutputStream() may
result in undesirable UI effects.
javax.servlet.ServletContext getServletContext()
Map<String,List<String>> getMimeHeaders()
void addMimeHeader(String name,
String value)
name and the supplied value to
the underlying SOAP message.
Ignores null name and value.
name - a non-null http header name.value - a non-null http header value.soap.MimeHeaders
void setMimeHeader(String name,
String value)
value to an http header identified by the supplied
name.
name - a non-null http header name.value - a non-null http header value.soap.MimeHeadersList<String> getMimeHeaders(String name)
name.
The returned list is unmodifiable.
name - an http header name.
name.void removeMimeHeader(String name)
name - a non-null http header name.soap.MimeHeaderscom.bea.wsrp.config.ProducerInfo getProducerInfo()
ProducerInfo
|
Copyright © 2008 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||