org.apache.pluto.descriptors.services.castor
Class ServletVersionCastorFieldHandler
java.lang.Object
org.exolab.castor.mapping.loader.FieldHandlerFriend
org.exolab.castor.mapping.ExtendedFieldHandler
org.exolab.castor.mapping.AbstractFieldHandler
org.apache.pluto.descriptors.services.castor.ServletVersionCastorFieldHandler
- All Implemented Interfaces:
- org.exolab.castor.mapping.ConfigurableFieldHandler, org.exolab.castor.mapping.FieldHandler
public class ServletVersionCastorFieldHandler
- extends org.exolab.castor.mapping.AbstractFieldHandler
This class manages the version
attribute on the <web-app> for
Servlet 2.3 and greater deployment descriptors.
Servlet 2.3 does not have a version
attribute, for the <web-app>
while Servlet 2.4 and higher do.
- Since:
- Mar 3, 2007
- Version:
- $Id: ServletVersionCastorFieldHandler.java 566125 2007-08-15 12:42:51Z cdoremus $
Fields inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
configuration |
Methods inherited from class org.exolab.castor.mapping.AbstractFieldHandler |
getFieldDescriptor, hasValue, setConfiguration, setFieldDescriptor |
Methods inherited from class org.exolab.castor.mapping.ExtendedFieldHandler |
checkValidity |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.exolab.castor.mapping.FieldHandler |
checkValidity |
ServletVersionCastorFieldHandler
public ServletVersionCastorFieldHandler()
getValue
public Object getValue(Object webAppDD)
throws IllegalStateException
- Specified by:
getValue
in interface org.exolab.castor.mapping.FieldHandler
- Specified by:
getValue
in class org.exolab.castor.mapping.AbstractFieldHandler
- Throws:
IllegalStateException
newInstance
public Object newInstance(Object arg0)
throws IllegalStateException
- Specified by:
newInstance
in interface org.exolab.castor.mapping.FieldHandler
- Specified by:
newInstance
in class org.exolab.castor.mapping.AbstractFieldHandler
- Throws:
IllegalStateException
newInstance
public Object newInstance(Object arg0,
Object[] arg1)
throws IllegalStateException
- Specified by:
newInstance
in class org.exolab.castor.mapping.AbstractFieldHandler
- Throws:
IllegalStateException
resetValue
public void resetValue(Object arg0)
throws IllegalStateException,
IllegalArgumentException
- Specified by:
resetValue
in interface org.exolab.castor.mapping.FieldHandler
- Specified by:
resetValue
in class org.exolab.castor.mapping.AbstractFieldHandler
- Throws:
IllegalStateException
IllegalArgumentException
setValue
public void setValue(Object webAppDD,
Object servletVersionValue)
throws IllegalStateException,
IllegalArgumentException
- Specified by:
setValue
in interface org.exolab.castor.mapping.FieldHandler
- Specified by:
setValue
in class org.exolab.castor.mapping.AbstractFieldHandler
- Throws:
IllegalStateException
IllegalArgumentException
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.