org.apache.commons.latka.jelly
Class CredentialsTag

java.lang.Object
  extended by org.apache.commons.jelly.TagSupport
      extended by org.apache.commons.latka.jelly.CredentialsTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

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

Basic authentication support for requests

Author:
Morgan Delagrange

Field Summary
protected  String _password
           
protected  String _userName
           
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
CredentialsTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
          Set user credentials
 void setPassword(String password)
          Sets the password for basic authentication
 void setUserName(String userName)
          Sets the user name for basic authentication
 
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
 

Field Detail

_userName

protected String _userName

_password

protected String _password
Constructor Detail

CredentialsTag

public CredentialsTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput xmlOutput)
Set user credentials

Parameters:
xmlOutput - a place to write output
Throws:
Exception - when any error occurs

setUserName

public void setUserName(String userName)
Sets the user name for basic authentication

Parameters:
userName - user name

setPassword

public void setPassword(String password)
Sets the password for basic authentication

Parameters:
password - password


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.