Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

oracle.sdp.messaging
Class MessageFactory

java.lang.Object
  extended by oracle.sdp.messaging.MessageFactory

Deprecated. Use MessagingFactory instead

@Deprecated
public abstract class MessageFactory
extends java.lang.Object

Factory class to create Message objects

Since:
11.0.0

Method Summary
abstract  Message createMessage()
          Deprecated. Use MessagingFactory.createMessage() instead
abstract  Message createTextMessage(java.lang.String textContent)
          Deprecated. Use MessagingFactory.createTextMessage(String) instead
abstract  Message createTextMessage(java.lang.String textContent, java.lang.String charset)
          Deprecated. Use MessagingFactory.createTextMessage(String, String) instead
static MessageFactory getInstance()
          Deprecated. 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

@Deprecated
public static MessageFactory getInstance()
Deprecated. 

Get singleton instance.


createMessage

@Deprecated
public abstract Message createMessage()
Deprecated. Use MessagingFactory.createMessage() instead

Create a new message.

Returns:
a new message.

createTextMessage

@Deprecated
public abstract Message createTextMessage(java.lang.String textContent)
                                   throws MessagingException
Deprecated. Use MessagingFactory.createTextMessage(String) instead

Create a text message with text/plain content type.

Parameters:
textContent - the plain text content to set in the message.
Returns:
a message created with the specified textContent set as the content and with text/plain set as the content type.
Throws:
MessagingException

createTextMessage

@Deprecated
public abstract Message createTextMessage(java.lang.String textContent,
                                                     java.lang.String charset)
                                   throws MessagingException
Deprecated. Use MessagingFactory.createTextMessage(String, String) instead

Create a text message with text/plain content type and specified charset.

Parameters:
textContent - the plain text content to set in the message.
charset - the charset name, such as UTF-8 or US-ASCII.
Returns:
a message created with the specified textContent set as the content and with text/plain; charset="charset" set as the content type.
Throws:
MessagingException

Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference
E14011-05

Copyright © 2009, 2013 Oracle and/or its affiliates. All rights reserved.