org.mmbase.module.builders.protocoldrivers
Class http

java.lang.Object
  extended byorg.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:
$Id: http.java,v 1.16 2003/03/17 11:30:18 kees Exp $
Author:
Daniel Ockeloen
Warning: Will be renamed to:
Http

Constructor Summary
http()
           
 
Method Summary
 boolean commitNode(java.lang.String nodename, java.lang.String tableName, java.lang.String xml)
           
 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

commitNode

public boolean commitNode(java.lang.String nodename,
                          java.lang.String tableName,
                          java.lang.String xml)
Specified by:
commitNode in interface ProtocolDriver
Returns:
true
Warning: No Java Documentation Available.

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
Returns:
a String with info about this protocoldriver.


MMBase build 1.7.1.20041002