org.apache.commons.jelly.tags.http
Class SessionTag

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

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

A http session. This is the container for data shared across requests

Author:
dion

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
SessionTag()
          Creates a new instance of SessionTag
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Process the tag
 java.lang.String getHost()
          Getter for property host.
 org.apache.commons.httpclient.HttpClient getHttpClient()
          Getter for property httpClient.
 java.lang.String getPort()
          Getter for property port.
 Proxy getProxy()
          Getter for property proxy.
 java.lang.String getProxyHost()
          Helper method for proxy host property
 int getProxyPort()
          Helper method for proxy port property
 java.lang.String getUserAgent()
          Getter for property userAgent.
 boolean isProxyAvailable()
          Tests whether the proxy is ready for use
 boolean isSecure()
          Getter for property secure.
 boolean isStrictMode()
          Getter for property strictMode.
 void setHost(java.lang.String host)
          Setter for property host.
 void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
          Setter for property httpClient.
 void setPort(java.lang.String port)
          Setter for property port.
 void setProxy(Proxy proxy)
          Setter for property proxy.
 void setProxyHost(java.lang.String host)
          Helper method for proxy host property
 void setProxyPort(int port)
          Helper method for proxy port property
 void setSecure(boolean secure)
          Setter for property secure.
 void setStrictMode(boolean strictMode)
          Setter for property strictMode.
 void setUserAgent(java.lang.String userAgent)
          Setter for property userAgent.
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionTag

public SessionTag()
Creates a new instance of SessionTag

Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
           throws org.apache.commons.jelly.JellyTagException
Process the tag

Parameters:
xmlOutput - to write output
Throws:
java.lang.Exception - when any error occurs
org.apache.commons.jelly.JellyTagException

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()
Getter for property httpClient.

Returns:
Value of property httpClient.

setHttpClient

public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
Setter for property httpClient.

Parameters:
httpClient - New value of property httpClient.

isProxyAvailable

public boolean isProxyAvailable()
Tests whether the proxy is ready for use

Returns:
true if the proxy is configured for use

getProxyHost

public java.lang.String getProxyHost()
Helper method for proxy host property

Returns:
the proxy's host property

setProxyHost

public void setProxyHost(java.lang.String host)
Helper method for proxy host property

Parameters:
host - the proxy's host property

getProxyPort

public int getProxyPort()
Helper method for proxy port property

Returns:
the proxy's port property

setProxyPort

public void setProxyPort(int port)
Helper method for proxy port property

Parameters:
port - the proxy's port property

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.

getPort

public java.lang.String getPort()
Getter for property port.

Returns:
Value of property port.

setPort

public void setPort(java.lang.String port)
Setter for property port.

Parameters:
port - New value of property port.

getProxy

public Proxy getProxy()
Getter for property proxy.

Returns:
Value of property proxy.

setProxy

public void setProxy(Proxy proxy)
Setter for property proxy.

Parameters:
proxy - New value of property proxy.

isSecure

public boolean isSecure()
Getter for property secure.

Returns:
Value of property secure.

setSecure

public void setSecure(boolean secure)
Setter for property secure.

Parameters:
secure - New value of property secure.

getUserAgent

public java.lang.String getUserAgent()
Getter for property userAgent.

Returns:
Value of property userAgent.

setUserAgent

public void setUserAgent(java.lang.String userAgent)
Setter for property userAgent.

Parameters:
userAgent - New value of property userAgent.

isStrictMode

public boolean isStrictMode()
Getter for property strictMode.

Returns:
Value of property strictMode.

setStrictMode

public void setStrictMode(boolean strictMode)
Setter for property strictMode.

Parameters:
strictMode - New value of property strictMode.


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.