org.mmbase.module.builders.protocoldrivers
Class http

java.lang.Object
  |
  +--org.mmbase.module.builders.protocoldrivers.http
All Implemented Interfaces:
ProtocolDriver

public class http
extends java.lang.Object
implements ProtocolDriver

This is the http implementation of the ProtocolDriver interface. It can signal a specific remote builder node using HTTP GET.

Version:
$Revision: 1.12 $ $Date: 2001/12/14 09:33:20 $
Author:
Daniel Ockeloen

Constructor Summary
http()
           
 
Method Summary
 boolean commitNode(java.lang.String nodename, java.lang.String tableName, java.lang.String xml)
          Commits the node?, well this implementation returns true immediately?!
 java.lang.String getProtocol()
          Gets the name of this protocoldriver.
 java.lang.String getRemoteHost()
          Gets the remote hostname.
 int getRemotePort()
          Gets the remote portnumber.
 void init(java.lang.String remoteHost, int remotePort)
          Initializes remotehost, remoteport, mmbase root variable and gets the mmbaseCop.
 boolean signalRemoteNode(java.lang.String number, java.lang.String builder, java.lang.String ctype)
          Sends a signal from mmbase to the remote side to tell that a remote node has a status has been changed.
 java.lang.String toString()
          Gets the protocolname, remotehost and remote port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

http

public http()
Method Detail

init

public void init(java.lang.String remoteHost,
                 int remotePort)
Initializes remotehost, remoteport, mmbase root variable and gets the mmbaseCop.
Specified by:
init in interface ProtocolDriver
Parameters:
remotHost - the remote host.
remotPortt - the remote port.

commitNode

public boolean commitNode(java.lang.String nodename,
                          java.lang.String tableName,
                          java.lang.String xml)
Commits the node?, well this implementation returns true immediately?!
Specified by:
commitNode in interface ProtocolDriver
Returns:
true

getProtocol

public java.lang.String getProtocol()
Gets the name of this protocoldriver.
Specified by:
getProtocol in interface ProtocolDriver
Returns:
a String containing the word "http".

getRemoteHost

public java.lang.String getRemoteHost()
Gets the remote hostname.
Returns:
the remote hostname.

getRemotePort

public int getRemotePort()
Gets the remote portnumber.
Returns:
the remote portnumber.

signalRemoteNode

public boolean signalRemoteNode(java.lang.String number,
                                java.lang.String builder,
                                java.lang.String ctype)
Sends a signal from mmbase to the remote side to tell that a remote node has a status has been changed.
Specified by:
signalRemoteNode in interface ProtocolDriver
Parameters:
number - a String with the object number of the remote builder node
builder - the typename of builder that's been signalled to.
ctype - the mmbase node changed symbol.
Returns:
true, always...?

toString

public java.lang.String toString()
Gets the protocolname, remotehost and remote port.
Specified by:
toString in interface ProtocolDriver
Overrides:
toString in class java.lang.Object
Returns:
a String with info about this protocoldriver.


MMBase 2002