protected TopicConfiguration createConfiguration() { return new TopicConfiguration(); }
/** * Fluent method to set the topic ARN for this configuration * * @param topicARN * ARN for the SNS topic * @return This object for method chaining */ public TopicConfiguration withTopicARN(String topicARN) { setTopicARN(topicARN); return this; } }
@Test public void unmarshall_ValidTopicConfiguration() throws Exception { final BucketNotificationConfiguration config = unmarshaller.unmarshall(getResource(TOPIC_INPUT)); final TopicConfiguration topicConfig = (TopicConfiguration) config.getConfigurationByName("TopicConfigId"); assertEquals("some-topic-arn", topicConfig.getTopicARN()); assertEventsUnmarshalledCorrectly(topicConfig.getEvents()); assertFilterRulesUnmarshalledCorrectly(topicConfig.getFilter().getS3KeyFilter().getFilterRules()); }
xml.start("Id").value(configName).end(); xml.start("Topic") .value(((TopicConfiguration) config).getTopicARN()) .end(); addEventsAndFilterCriteria(xml, config);
xml.start("Id").value(configName).end(); xml.start("Topic") .value(((TopicConfiguration) config).getTopicARN()) .end(); addEventsAndFilterCriteria(xml, config);
protected boolean handleXmlEvent(TopicConfiguration topicConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Topic", targetDepth)) { topicConfig.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
protected TopicConfiguration createConfiguration() { return new TopicConfiguration(); }
/** * Fluent method to set the topic ARN for this configuration * * @param topicARN * ARN for the SNS topic * @return This object for method chaining */ public TopicConfiguration withTopicARN(String topicARN) { setTopicARN(topicARN); return this; } }
protected TopicConfiguration createConfiguration() { return new TopicConfiguration(); }
protected boolean handleXmlEvent(TopicConfiguration topicConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Topic", targetDepth)) { topicConfig.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
protected TopicConfiguration createConfiguration() { return new TopicConfiguration(); }
/** * Fluent method to set the topic ARN for this configuration * * @param topicARN * ARN for the SNS topic * @return This object for method chaining */ public TopicConfiguration withTopicARN(String topicARN) { setTopicARN(topicARN); return this; } }
/** * Fluent method to set the topic ARN for this configuration * * @param topicARN * ARN for the SNS topic * @return This object for method chaining */ public TopicConfiguration withTopicARN(String topicARN) { setTopicARN(topicARN); return this; } }
protected boolean handleXmlEvent(TopicConfiguration topicConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Topic", targetDepth)) { topicConfig.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }
protected boolean handleXmlEvent(TopicConfiguration topicConfig, StaxUnmarshallerContext context, int targetDepth) throws Exception { if (context.testExpression("Topic", targetDepth)) { topicConfig.setTopicARN(StringStaxUnmarshaller.getInstance().unmarshall(context)); return true; } return false; }