org.apache.commons.jelly.tags.jetty
Class SocketListenerTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.jetty.SocketListenerTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class SocketListenerTag
extends org.apache.commons.jelly.TagSupport

Declare a socket listener for a Jetty http server

Version:
$Id: SocketListenerTag.java,v 1.3 2002/07/14 12:38:22 dion Exp $
Author:
rtl

Field Summary
private  java.lang.String _host
          parameter host, with default
private  int _port
          parameter port with default
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SocketListenerTag()
          Creates a new instance of SocketListenerTag
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Perform the tag functionality.
 java.lang.String getHost()
          Getter for property host.
 int getPort()
          Getter for property port.
 void setHost(java.lang.String host)
          Setter for property host.
 void setPort(int port)
          Setter for property port.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_port

private int _port
parameter port with default


_host

private java.lang.String _host
parameter host, with default

Constructor Detail

SocketListenerTag

public SocketListenerTag()
Creates a new instance of SocketListenerTag

Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           throws org.apache.commons.jelly.JellyTagException
Perform the tag functionality. In this case, add a socket listener for the specified host and port to the parent server,

Parameters:
xmlOutput - where to send output
Throws:
java.lang.Exception - when an error occurs
org.apache.commons.jelly.JellyTagException

getPort

public int getPort()
Getter for property port.

Returns:
value of property port.

setPort

public void setPort(int port)
Setter for property port.

Parameters:
port - New value of property port.

getHost

public java.lang.String getHost()
Getter for property host.

Returns:
value of property host.

setHost

public void setHost(java.lang.String host)
Setter for property host.

Parameters:
host - New value of property host.