コード例 #1
0
  /** @return input adaptor configuration property list */
  @Override
  public List<Property> getInputAdaptorProperties() {

    List<Property> propertyList = new ArrayList<Property>();

    // URI
    Property uri = new Property(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_URI);
    uri.setDisplayName(
        resourceBundle.getString(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_URI));
    uri.setRequired(true);
    uri.setHint(
        resourceBundle.getString(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_URI_HINT));
    propertyList.add(uri);

    // Username
    Property userNameProperty =
        new Property(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_USERNAME);
    userNameProperty.setDisplayName(
        resourceBundle.getString(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_USERNAME));
    propertyList.add(userNameProperty);

    // Password
    Property passwordProperty =
        new Property(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_PASSWORD);
    passwordProperty.setSecured(true);
    passwordProperty.setDisplayName(
        resourceBundle.getString(WSEventTransportAdaptorConstants.TRANSPORT_CONF_WSEVENT_PASSWORD));
    propertyList.add(passwordProperty);

    return propertyList;
  }
コード例 #2
0
  /** @return input message configuration property list */
  @Override
  public List<Property> getInputMessageProperties() {
    List<Property> propertyList = new ArrayList<Property>();

    // topic name
    Property topicProperty =
        new Property(WSEventTransportAdaptorConstants.TRANSPORT_MESSAGE_TOPIC_NAME);
    topicProperty.setDisplayName(
        resourceBundle.getString(WSEventTransportAdaptorConstants.TRANSPORT_MESSAGE_TOPIC_NAME));
    topicProperty.setRequired(true);
    topicProperty.setHint(
        resourceBundle.getString(
            WSEventTransportAdaptorConstants.TRANSPORT_MESSAGE_HINT_TOPIC_NAME));

    propertyList.add(topicProperty);

    return propertyList;
  }