|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.io.messaging.DestinationFactory
public class DestinationFactory
Creates Destination objects.
| Method Summary | ||
|---|---|---|
static BlockingReceiverDestination |
createBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri)
Creates a BlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static BlockingReceiverDestination |
createBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri,
MessageProcessor processor)
Creates a BlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static BlockingSenderDestination |
createBlockingSenderDestination(Context context,
URI uri)
Creates a BlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static BlockingSenderDestination |
createBlockingSenderDestination(Context context,
URI uri,
MessageProcessor processor)
Creates a BlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static FireAndForgetDestination |
createFireAndForgetDestination(Context context,
URI uri)
Creates a FireAndForgetDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static NonBlockingReceiverDestination |
createNonBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri,
MessageListener listener)
Creates a NonBlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static NonBlockingReceiverDestination |
createNonBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri,
MessageProcessor processor,
MessageListener listener)
Creates a NonBlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static NonBlockingSenderDestination |
createNonBlockingSenderDestination(Context context,
URI uri,
MessageListener listener)
Creates a NonBlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static NonBlockingSenderDestination |
createNonBlockingSenderDestination(Context context,
URI uri,
MessageProcessor processor,
MessageListener listener)
Creates a NonBlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. |
|
static ReceiverDestination |
getReceiverDestination(URI uri)
Returns a ReceiverDestination resource for the URL specified. |
|
static SenderDestination |
getSenderDestination(String contextName,
URI uri)
Returns a Destination resource associated with this sender context for the specified URL. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BlockingSenderDestination createBlockingSenderDestination(Context context,
URI uri)
throws MessagingException
BlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. The following forms of
URLs are recognized by the library:
BlockingSenderDestination that will send messages to the specified URL using HTTP.
BlockingSenderDestination that will send messages to the specified URL
using HTTPS.
BlockingSenderDestination that will send messages to an application
named "deviceAppName" running on the device and listening on the URL local://deviceAppName.
context - A Context for the Destination.uri - URI for this BlockingSenderDestination.
BlockingSenderDestination that can be used to send messages to the specified URI.
MessagingException - If URI is incorrectly specified.
public static BlockingSenderDestination createBlockingSenderDestination(Context context,
URI uri,
MessageProcessor processor)
throws MessagingException
BlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. The following forms of
URLs are recognized by the library:
BlockingSenderDestination that will send messages to the specified URL
using HTTP.
BlockingSenderDestination that will send messages to the specified URL.
using HTTPS
BlockingSenderDestination that will send messages to an application
named "deviceAppName" running on the device and listening on the URL local://deviceAppName.
context - A Context for the Destination.uri - URI for this BlockingSenderDestination.processor - MessageProcessor that will be used for processing response messages.
BlockingSenderDestination that can be used to send messages to the specified URI.
MessagingException - If URI is incorrectly specified.
public static NonBlockingSenderDestination createNonBlockingSenderDestination(Context context,
URI uri,
MessageListener listener)
throws MessagingException
NonBlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. The following forms of
of URLs are recognized by the library:
NonBlockingSenderDestination that will send messages to the specified
URL using HTTP.
NonBlockingSenderDestination that will send messages to the
specified URL using HTTPS.
NonBlockingSenderDestination that will send messages to an application
named "deviceAppName" running on the device and listening on the URL local://deviceAppName.
context - A Context for the Destination.uri - URI for this NonBlockingSenderDestination.listener - MessageListener to receive asynchronous responses.
NonBlockingSenderDestination that can be used to send messages to the specified URI.
MessagingException - If the URI is incorrectly specified.
public static NonBlockingSenderDestination createNonBlockingSenderDestination(Context context,
URI uri,
MessageProcessor processor,
MessageListener listener)
throws MessagingException
NonBlockingSenderDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. The following forms of
of URLs are recognized by the library:
NonBlockingSenderDestination that will send messages to the specified
URL using HTTP.
NonBlockingSenderDestination that will send messages to the
specified URL using HTTPS.
NonBlockingSenderDestination that will send messages to an application
named "deviceAppName" running on the device and listening on the URL local://deviceAppName.
context - A Context for the Destination.uri - URI for this NonBlockingSenderDestination.processor - MessageProcessor that will be used for processing response messages.listener - MessageListener to receive asynchronous responses.
NonBlockingSenderDestination that can be used to send messages to the specified URI.
MessagingException - If URI is incorrectly specified.
public static FireAndForgetDestination createFireAndForgetDestination(Context context,
URI uri)
throws MessagingException
FireAndForgetDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified. The following forms of
URLs are recognized by the library:
FireAndForgetDestination sender destination that will send messages to
the specified URL using HTTP.
FireAndForgetDestination sender destination that will send messages
to the specified URL using HTTPS.
FireAndForgetDestination sender sestination that will send messages
to an application named "deviceAppName" running on the device and listening on the URL local://deviceAppName.
context - A Context for the Destination.uri - URI for this FireAndForgetDestination.
FireAndForgetDestination that can be used to send messages to the specified URI.
MessagingException - If URI is incorrectly specified.
public static BlockingReceiverDestination createBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri)
throws MessagingException
BlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified.
createBlockingReceiverDestination will receive messages by listening on the URL
local://deviceAppName.
config - InboundDestinationConfiguration to use for listening.uri - URI for this FireAndForgetDestination.
BlockingReceiverDestination that can be used to receive messages at the specified URI.
MessagingException - If URI is incorrectly specified.
public static BlockingReceiverDestination createBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri,
MessageProcessor processor)
throws MessagingException
BlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified.
createBlockingReceiverDestination will receive messages by listening on the URL
local://deviceAppName.
config - InboundDestinationConfiguration to use for listening.uri - URI for this BlockingReceiverDestination.processor - MessageProcessor that will be used for processing incoming messages.
BlockingReceiverDestination that can be used to receive messages at the specified URI.
MessagingException - If URI is incorrectly specified.
public static NonBlockingReceiverDestination createNonBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri,
MessageListener listener)
throws MessagingException
NonBlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified.
createNonBlockingReceiverDestination will receive messages by listening on the URL
local://deviceAppName.
config - InboundDestinationConfiguration to use for listening.uri - URI for this NonBlockingReceiverDestination.listener - MessageListener to use for asynchronous receiving of messages.
NonBlockingReceiverDestination that can be used to receive messages at the specified URI.
MessagingException - If URI is incorrectly specified.
public static NonBlockingReceiverDestination createNonBlockingReceiverDestination(InboundDestinationConfiguration config,
URI uri,
MessageProcessor processor,
MessageListener listener)
throws MessagingException
NonBlockingReceiverDestination that uses a ConnectionFactory
or CredentialsCollector provided by the context specified.
createNonBlockingReceiverDestination will receive messages by listening on the URL
local://deviceAppName.
config - InboundDestinationConfiguration to use for listening.uri - URI for this NonBlockingReceiverDestination.processor - MessageProcessor that will be used for processing incoming messages.listener - MessageListener to use for asynchronous receiving of messages.
NonBlockingReceiverDestination that can be used to receive messages at the specified URI.
MessagingException - If URI is incorrectly specified.
public static SenderDestination getSenderDestination(String contextName,
URI uri)
Destination resource associated with this sender context for the specified URL.
uri - URI to get the Destination.
Destination that should be cast to the corresponding type (e.g. NonBlockingReceiverDestination,
BlockingSenderDestination, etc.), or null if not found.public static ReceiverDestination getReceiverDestination(URI uri)
ReceiverDestination resource for the URL specified.
uri - URI to get the Destination for.
Destination that should be cast to the corresponding type (e.g. NonblockingReceiverDestination,
BlockingSenderDestination, etc.), or null if not found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.