com.day.cq.replication.transport
Class Http
java.lang.Object
com.day.cq.replication.transport.Http
- All Implemented Interfaces:
- TransportHandler
public class Http
- extends Object
- implements TransportHandler
The default implementation of a transport handler using the http
protocol to post the content to another seerver.
|
Constructor Summary |
Http()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Http
public Http()
getConfigValue
protected int getConfigValue(Map<String,Object> conf,
String key,
int defaultValue)
deliver
public TransportHandler.Status deliver(SyndicationAgentConfig syndicator,
SyndicationLog log,
ReplicationAction action,
ReplicationContent[] content)
throws ReplicationException
- Description copied from interface:
TransportHandler
- Delivers content to a subscriber.
- Specified by:
deliver in interface TransportHandler
- Parameters:
syndicator - The syndication agent.log - The syndication logaction - The replication actioncontent - The content node or null.
- Returns:
true if successfuly delivered;
false otherwise.
- Throws:
ReplicationException- See Also:
TransportHandler.deliver(com.day.cq.replication.SyndicationAgentConfig, com.day.cq.replication.SyndicationLog, com.day.cq.replication.ReplicationAction, com.day.cq.replication.ReplicationContent[])
parseProperty
protected static void parseProperty(Map<String,Object> props,
String str)
- Reads in a property line and adds it to the properties.
- Parameters:
str - the string to parse
Copyright © 2008 Day Management AG. All Rights Reserved.