Skip navigation links


com.bea.wsrp.model.markup
Interface IMimeResponseContext

All Known Subinterfaces:
IBlockingInteractionBaseResponseContext, IBlockingInteractionResponseContext, IGetMarkupBaseResponseContext, IGetMarkupResponseContext, IGetResourceResponseContext, IHandleEventsResponseContext

public interface IMimeResponseContext

Method Summary
 LinkedHashMap<String,List<String>> getClientAttributes()
          Returns the map of client attributes associated with the MimeResponse
 int getExpires()
          Returns the number of seconds the markup referenced by this context object remains valid.
 String getLocale()
          Returns the locale of the returned markup.
 String getMarkupCharacterSet()
          Returns the character set used to encode the markup.
 InputStream getMarkupData()
          Returns an InputStream to read the returned markup.
 String getMarkupRefId()
          Gets the value of the MimeResponse RefId if set to support Soap With Attachments (SWA)
 String getMimeType()
          Returns the Mime type of the returned markup.
 String getUserScope()
          Returns a string indicating when the markup may be used by various users.
 String getValidateTag()
          Returns a string (unique id on a Producer) that a Consumer can use it to revalidate markup once the expires duration elapses.
 boolean isRequiresUrlRewritingOn()
          Returns "true" if a Producer/Portlet indicated that the Consumer-side URL rewriting is required.
 boolean isUseCachedMarkupOn()
          Returns true if the markup in which the Consumer indicated it has cached, is still valid.
 void setClientAttributes(LinkedHashMap<String,List<String>> clientAttributes)
          Sets the map of client attributes on the MimeResponse
 void setMarkupCharacterSet(String encoding)
          Sets the supplied encoding as the encoding used for the encapsulated markup.
 void setMarkupData(InputStream markupData)
          Sets the supplied <t>markupData</t> as the new returned markup.
 void setMimeType(String mimeType)
          Sets the supplied string as the Mime type of the returned markup.
 void setRequiresUrlRewritingOn(boolean value)
          Sets the supplied value to indicate whether Consumer-side URL rewriting is required or not.
 void setUseCachedMarkupOn(boolean value)
          Sets the supplied value that indicates to the Consumer that the cached markup is valid or not.

 

Method Detail

getMarkupData

InputStream getMarkupData()
                          throws IOException
Returns an InputStream to read the returned markup. Note: If an intercepter reads the returned markup, there is no way to reset the input stream so that WLP remote portlet can read the markup and render. The correct way to read is to read the returned markup into a ByteArrayOutputStream and set the markup data by creating a new ByteArrayInputStream with the bytes from the output stream, and set the markup data by calling <t>setMarkupData</t>.
Returns
An input stream to the returned markup.
Throws
IOException - if unable to create an input stream.

setMarkupData

void setMarkupData(InputStream markupData)
Sets the supplied <t>markupData</t> as the new returned markup.
Parameters
markupData - a new input stream to read the markup.

getMarkupCharacterSet

String getMarkupCharacterSet()
Returns the character set used to encode the markup. If not found in the SOAP response message, the character encoding of the current http response of Consumer is returned.
Returns
A character set name.

setMarkupCharacterSet

void setMarkupCharacterSet(String encoding)
Sets the supplied encoding as the encoding used for the encapsulated markup.
Parameters
encoding - a character set name.

getExpires

int getExpires()
Returns the number of seconds the markup referenced by this context object remains valid. -1 indicates markup will never expire. Note: The expires is a member of the cache control type.
Returns
number of seconds.

getUserScope

String getUserScope()
Returns a string indicating when the markup may be used by various users. Note: userScope is a member of the cache control type.
Returns
a string indicating user scope of the markup.

getValidateTag

String getValidateTag()
Returns a string (unique id on a Producer) that a Consumer can use it to revalidate markup once the expires duration elapses. Note: useScope is a member of the cache control type.
Returns
A unique string for revalidating a Portlet's markup.

isUseCachedMarkupOn

boolean isUseCachedMarkupOn()
Returns true if the markup in which the Consumer indicated it has cached, is still valid.
Returns
true if the Consumer cached markup is still valid.

setUseCachedMarkupOn

void setUseCachedMarkupOn(boolean value)
Sets the supplied value that indicates to the Consumer that the cached markup is valid or not.
Parameters
value - a boolean value.

getMimeType

String getMimeType()
Returns the Mime type of the returned markup.
Returns
a string representing a Mime type.

setMimeType

void setMimeType(String mimeType)
Sets the supplied string as the Mime type of the returned markup.
Parameters
mimeType - a new Mime type.

getLocale

String getLocale()
Returns the locale of the returned markup.
Returns
locale of the returned markup.

isRequiresUrlRewritingOn

boolean isRequiresUrlRewritingOn()
Returns "true" if a Producer/Portlet indicated that the Consumer-side URL rewriting is required.
Returns
true if Consumer-side URL rewriting is required.

setRequiresUrlRewritingOn

void setRequiresUrlRewritingOn(boolean value)
Sets the supplied value to indicate whether Consumer-side URL rewriting is required or not.
Parameters
value - a boolean value to indicate Consumer-side URL rewriting is required or not.

getMarkupRefId

String getMarkupRefId()
Gets the value of the MimeResponse RefId if set to support Soap With Attachments (SWA)
Returns
String of the MimeResponse ReferenceId to

getClientAttributes

LinkedHashMap<String,List<String>> getClientAttributes()
Returns the map of client attributes associated with the MimeResponse
Returns
value of LinkedHashMap<String,List<String>> containing the client attributes

setClientAttributes

void setClientAttributes(LinkedHashMap<String,List<String>> clientAttributes)
Sets the map of client attributes on the MimeResponse
Parameters
clientAttributes -

Skip navigation links


Copyright © 2010, Oracle. All rights reserved.