org.mule.transport.legstar
Class LegstarConnectorHelper

java.lang.Object
  extended by org.mule.transport.legstar.LegstarConnectorHelper

public final class LegstarConnectorHelper
extends Object

Provides common utility methods for connectors.


Method Summary
static HostCredentials getHostCredentials(LegstarConnector connector, org.mule.api.MuleMessage message)
          Credentials can be set at the connector level or passed as properties in incoming messages.
static HostCredentials getHostCredentials(org.mule.api.MuleMessage message)
          An alternative to the previous method, useful when no connector is available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getHostCredentials

public static HostCredentials getHostCredentials(LegstarConnector connector,
                                                 org.mule.api.MuleMessage message)
Credentials can be set at the connector level or passed as properties in incoming messages.

The dynamic credentials passed in message properties take precedence over any connector property.

Parameters:
message - the incoming mule message
connector - the connector used to send that message
Returns:
a set of host credentials

getHostCredentials

public static HostCredentials getHostCredentials(org.mule.api.MuleMessage message)
An alternative to the previous method, useful when no connector is available.

Parameters:
message - the message hopefully holding credentials
Returns:
the host credentials extracted from the message properties


Copyright © 2013 LegSem. All Rights Reserved.