com.day.cq.replication.transport
Class Http

java.lang.Object
  extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.day.cq.replication.TransportHandler
TransportHandler.Status
 
Constructor Summary
Http()
           
 
Method Summary
 TransportHandler.Status deliver(SyndicationAgentConfig syndicator, SyndicationLog log, ReplicationAction action, ReplicationContent[] content)
          Delivers content to a subscriber.
protected  int getConfigValue(Map<String,Object> conf, String key, int defaultValue)
           
protected static void parseProperty(Map<String,Object> props, String str)
          Reads in a property line and adds it to the properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Http

public Http()
Method Detail

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 log
action - The replication action
content - 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.