atg.nucleus
Class ServiceAdminServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by atg.nucleus.ServiceAdminServlet
All Implemented Interfaces:
atg.beans.NotSerializable, PropertyValueFormatter, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
WebAppRegistryAdminServlet

public class ServiceAdminServlet
extends javax.servlet.http.HttpServlet
implements PropertyValueFormatter, atg.beans.NotSerializable

A ServiceAdminServlet is the base class for services that wish to provide an HTTP interface. Such a service should implement AdminableService, and are expected to provide a Servlet that will implement that interface. For convenience, that Servlet may extend ServiceAdminServlet.

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  Nucleus mNucleus
          The Nucleus controlling the system
protected  java.lang.Object mResolvedService
          The service as returned from Nucleus' resolveName method
protected  java.lang.Object mService
          The Service for whom this interface is operating
 
Constructor Summary
ServiceAdminServlet(java.lang.Object pService, Nucleus pNucleus)
          Constructs a new ServiceAdminServlet
 
Method Summary
protected  java.lang.String formatLongObject(java.lang.Object pObject, javax.servlet.http.HttpServletRequest pRequest)
          Formats the specified object, turning it into the "long form" String representation of its value.
 java.lang.String formatLongPropertyValue(java.lang.Object pValue, javax.servlet.http.HttpServletRequest pRequest, PropertyValueFormatter pFormatter)
          Formats the specified value into a String, using the "long form" of the value.
protected  java.lang.String formatObject(java.lang.Object pObject, javax.servlet.http.HttpServletRequest pRequest)
          Formats the specified object, turning it into a String representation of its value.
 java.lang.String formatPropertyValue(java.lang.Object pValue, javax.servlet.http.HttpServletRequest pRequest, PropertyValueFormatter pFormatter)
          Formats the specified value into a String, using the "short form" of the value.
protected  java.lang.String formatServiceLink(java.lang.String pServiceName, javax.servlet.http.HttpServletRequest pRequest)
          Returns the opening "href" tag that will lead back to the specified absolute service name
protected  java.lang.String formatServiceName(java.lang.String pServiceName, javax.servlet.http.HttpServletRequest pRequest)
          Returns the specified service name in a manner that is usable as a link, by adding the servlet path and appending a "/" if necessary.
protected  java.lang.String formatServiceName(java.lang.String pServiceName, java.lang.String pSuffix, javax.servlet.http.HttpServletRequest pRequest)
          Returns the specified service name in a manner that is usable as a link, by adding the servlet path and appending a "/" if necessary.
protected  java.lang.String getAbsoluteNameOf(java.lang.Object pComponent)
          Return the absolute name of pComponent.
protected  java.lang.String getPropertyConfigurationErrorString(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pPropertyName, java.lang.String pNewValue, atg.nucleus.logging.CollectingLoggingSupport pLoggerCollecting)
          Return a string to represent property configuration errors.
 java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Class pClass, java.lang.String pPropertyName)
          Returns the property descriptor for the given property of the given class, or null if none is found.
protected  java.util.ResourceBundle getResourceBundle()
          The ResourceBundle to use with this AdminServlet.
protected  java.lang.String getResourceString(java.lang.String pPattern)
          Loads the resource bundle, if not already loaded, and returns the requested resource string.
protected  java.lang.String getResourceString(java.lang.String pPattern, java.lang.Object[] pPatternArgs)
          Loads the resource bundle, if not already loaded, and returns the requested resource string with any args inserted.
 java.lang.String getScopeRelativePath(java.lang.String pPath)
          Return the scope relative path for a given component.
protected  void handleInvocationException(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pMethodName, java.lang.Throwable pException)
          Handle an invocation exception.
protected  void insertStyle(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Insert any style/css tags...
protected  void printAdmin(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints the administrative information specific to this service.
protected  void printBodyTag(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints the opening body tag.
protected  boolean printCollectionValues(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut, java.lang.Object pObject, java.lang.String pPrefix)
          Prints a listing of all the service's properties and values.
protected  void printDirectory(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints a directory listing of the elements in the context, if the service is a NameContext.
protected  void printDynamicPropertyValues(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut, java.lang.Object pObject, java.lang.String pPrefix, boolean pIncludeCollection)
          Prints a listing of all the service's properties and values.
protected  void printDynamicPropertyValues(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut, java.lang.String pPropertyPrefix, java.lang.Object pObject, DynamicPropertyDescriptor[] pPropDescs, boolean pSortProperties, boolean pAllowLinks)
          Prints a listing of all the service's properties and values.
 void printEventSet(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pEventSetName)
          Prints an event set
protected  void printEventSets(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints a listing of all the service's event sets
protected  void printHeaderTitle(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints the title of the page's header.
 void printMethodInvocation(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pMethodName)
          Prints the formatted information of a method invocation on a service
protected  void printMethodInvocationResult(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pMethodName, java.lang.Object pResult)
          Print out the invocation method result.
 void printMethodInvocationVerification(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pMethodName)
          Prints the formatted information for a verification screen before invoking a method
protected  void printMethods(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints a listing of all the service's properties and values.
 void printProperty(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, java.lang.String pPropertyName)
          Prints the formatted information for a service, including the name, directory listing, and properties.
protected  void printPropertyValues(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints a listing of all the service's properties and values.
protected  void printPropertyValues(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut, java.lang.String pPropertyPrefix, java.lang.Object pObject, java.beans.PropertyDescriptor[] pPropDescs)
          Prints a listing of all the service's properties and values.
 void printService(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse)
          Prints the formatted information for a service, including the name, directory listing, and properties.
protected  void printServiceInfo(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints the serviceInfo property of the service.
protected  void printStringValue(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints the string value (toString) of the service.
protected  void printTitle(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse, javax.servlet.ServletOutputStream pOut)
          Prints the title of the page.
 void reloadComponent(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse)
          Reload a class generated from a InstanceFactory instance.
 void service(javax.servlet.http.HttpServletRequest pRequest, javax.servlet.http.HttpServletResponse pResponse)
          Handles requests
 void setResolvedService(java.lang.Object pService)
          Sets the service component as resolved by Nucleus.
protected  java.beans.EventSetDescriptor[] sortEventSetDescriptors(java.beans.EventSetDescriptor[] pDescriptors)
          Sorts the list of eventSet descriptors by eventSet name and returns a new list of the sorted descriptors.
protected  java.beans.MethodDescriptor[] sortMethodDescriptors(java.beans.MethodDescriptor[] pDescriptors)
          Sorts the list of method descriptors by method name and returns a new list of the sorted descriptors.
protected  java.beans.PropertyDescriptor[] sortPropertyDescriptors(java.beans.PropertyDescriptor[] pDescriptors)
          Sorts the list of property descriptors by property name and returns a new list of the sorted descriptors.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mService

protected transient java.lang.Object mService
The Service for whom this interface is operating


mNucleus

protected transient Nucleus mNucleus
The Nucleus controlling the system


mResolvedService

protected transient java.lang.Object mResolvedService
The service as returned from Nucleus' resolveName method

Constructor Detail

ServiceAdminServlet

public ServiceAdminServlet(java.lang.Object pService,
                           Nucleus pNucleus)
Constructs a new ServiceAdminServlet

Parameters:
pService - the service object to be manipulated by this servlet
pNucleus - the Nucleus controlling the service hierarchy
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest pRequest,
                    javax.servlet.http.HttpServletResponse pResponse)
             throws javax.servlet.ServletException,
                    java.io.IOException
Handles requests

Overrides:
service in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException - if an error occurred while processing the servlet request
java.io.IOException - if an error occurred while reading or writing the servlet request

reloadComponent

public void reloadComponent(javax.servlet.http.HttpServletRequest pRequest,
                            javax.servlet.http.HttpServletResponse pResponse)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Reload a class generated from a InstanceFactory instance.

Throws:
javax.servlet.ServletException
java.io.IOException

printService

public void printService(javax.servlet.http.HttpServletRequest pRequest,
                         javax.servlet.http.HttpServletResponse pResponse)
                  throws javax.servlet.ServletException,
                         java.io.IOException
Prints the formatted information for a service, including the name, directory listing, and properties.

Throws:
javax.servlet.ServletException - if an error occurred while processing the servlet request
java.io.IOException - if an error occurred while reading or writing the servlet request

insertStyle

protected void insertStyle(javax.servlet.http.HttpServletRequest pRequest,
                           javax.servlet.http.HttpServletResponse pResponse,
                           javax.servlet.ServletOutputStream pOut)
                    throws javax.servlet.ServletException,
                           java.io.IOException
Insert any style/css tags... inserted into the header.

Throws:
javax.servlet.ServletException
java.io.IOException

printHeaderTitle

protected void printHeaderTitle(javax.servlet.http.HttpServletRequest pRequest,
                                javax.servlet.http.HttpServletResponse pResponse,
                                javax.servlet.ServletOutputStream pOut)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Prints the title of the page's header. By default, this will print the name of the service with links to the various parts of the name.

Throws:
javax.servlet.ServletException - if an error occurred
java.io.IOException - if an error occurred

printTitle

protected void printTitle(javax.servlet.http.HttpServletRequest pRequest,
                          javax.servlet.http.HttpServletResponse pResponse,
                          javax.servlet.ServletOutputStream pOut)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Prints the title of the page. By default, this will print the name of the service.

Throws:
javax.servlet.ServletException - if an error occurred
java.io.IOException - if an error occurred

printServiceInfo

protected void printServiceInfo(javax.servlet.http.HttpServletRequest pRequest,
                                javax.servlet.http.HttpServletResponse pResponse,
                                javax.servlet.ServletOutputStream pOut)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Prints the serviceInfo property of the service.

Throws:
javax.servlet.ServletException
java.io.IOException

printStringValue

protected void printStringValue(javax.servlet.http.HttpServletRequest pRequest,
                                javax.servlet.http.HttpServletResponse pResponse,
                                javax.servlet.ServletOutputStream pOut)
                         throws javax.servlet.ServletException,
                                java.io.IOException
Prints the string value (toString) of the service.

Throws:
javax.servlet.ServletException
java.io.IOException

printBodyTag

protected void printBodyTag(javax.servlet.http.HttpServletRequest pRequest,
                            javax.servlet.http.HttpServletResponse pResponse,
                            javax.servlet.ServletOutputStream pOut)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Prints the opening body tag. By default, this prints out no background color.

Throws:
javax.servlet.ServletException - if an error occurred
java.io.IOException - if an error occurred

printDirectory

protected void printDirectory(javax.servlet.http.HttpServletRequest pRequest,
                              javax.servlet.http.HttpServletResponse pResponse,
                              javax.servlet.ServletOutputStream pOut)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Prints a directory listing of the elements in the context, if the service is a NameContext.

Throws:
javax.servlet.ServletException
java.io.IOException

sortPropertyDescriptors

protected java.beans.PropertyDescriptor[] sortPropertyDescriptors(java.beans.PropertyDescriptor[] pDescriptors)
Sorts the list of property descriptors by property name and returns a new list of the sorted descriptors.


sortMethodDescriptors

protected java.beans.MethodDescriptor[] sortMethodDescriptors(java.beans.MethodDescriptor[] pDescriptors)
Sorts the list of method descriptors by method name and returns a new list of the sorted descriptors.


printMethods

protected void printMethods(javax.servlet.http.HttpServletRequest pRequest,
                            javax.servlet.http.HttpServletResponse pResponse,
                            javax.servlet.ServletOutputStream pOut)
                     throws javax.servlet.ServletException,
                            java.io.IOException
Prints a listing of all the service's properties and values.

Throws:
javax.servlet.ServletException
java.io.IOException

printPropertyValues

protected void printPropertyValues(javax.servlet.http.HttpServletRequest pRequest,
                                   javax.servlet.http.HttpServletResponse pResponse,
                                   javax.servlet.ServletOutputStream pOut)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
Prints a listing of all the service's properties and values.

Throws:
javax.servlet.ServletException
java.io.IOException

printPropertyValues

protected void printPropertyValues(javax.servlet.http.HttpServletRequest pRequest,
                                   javax.servlet.http.HttpServletResponse pResponse,
                                   javax.servlet.ServletOutputStream pOut,
                                   java.lang.String pPropertyPrefix,
                                   java.lang.Object pObject,
                                   java.beans.PropertyDescriptor[] pPropDescs)
                            throws javax.servlet.ServletException,
                                   java.io.IOException
Prints a listing of all the service's properties and values.

Throws:
javax.servlet.ServletException
java.io.IOException

printCollectionValues

protected boolean printCollectionValues(javax.servlet.http.HttpServletRequest pRequest,
                                        javax.servlet.http.HttpServletResponse pResponse,
                                        javax.servlet.ServletOutputStream pOut,
                                        java.lang.Object pObject,
                                        java.lang.String pPrefix)
                                 throws javax.servlet.ServletException,
                                        java.io.IOException
Prints a listing of all the service's properties and values.

Throws:
javax.servlet.ServletException
java.io.IOException

printDynamicPropertyValues

protected void printDynamicPropertyValues(javax.servlet.http.HttpServletRequest pRequest,
                                          javax.servlet.http.HttpServletResponse pResponse,
                                          javax.servlet.ServletOutputStream pOut,
                                          java.lang.Object pObject,
                                          java.lang.String pPrefix,
                                          boolean pIncludeCollection)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
Prints a listing of all the service's properties and values.

Throws:
javax.servlet.ServletException
java.io.IOException

printDynamicPropertyValues

protected void printDynamicPropertyValues(javax.servlet.http.HttpServletRequest pRequest,
                                          javax.servlet.http.HttpServletResponse pResponse,
                                          javax.servlet.ServletOutputStream pOut,
                                          java.lang.String pPropertyPrefix,
                                          java.lang.Object pObject,
                                          DynamicPropertyDescriptor[] pPropDescs,
                                          boolean pSortProperties,
                                          boolean pAllowLinks)
                                   throws javax.servlet.ServletException,
                                          java.io.IOException
Prints a listing of all the service's properties and values.

Throws:
javax.servlet.ServletException
java.io.IOException

getPropertyDescriptor

public java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Class pClass,
                                                           java.lang.String pPropertyName)
                                                    throws java.beans.IntrospectionException
Returns the property descriptor for the given property of the given class, or null if none is found.

Throws:
java.beans.IntrospectionException

printMethodInvocationVerification

public void printMethodInvocationVerification(javax.servlet.http.HttpServletRequest pRequest,
                                              javax.servlet.http.HttpServletResponse pResponse,
                                              java.lang.String pMethodName)
                                       throws javax.servlet.ServletException,
                                              java.io.IOException
Prints the formatted information for a verification screen before invoking a method

Throws:
javax.servlet.ServletException - if an error occurred while processing the servlet request
java.io.IOException - if an error occurred while reading or writing the servlet request

printMethodInvocation

public void printMethodInvocation(javax.servlet.http.HttpServletRequest pRequest,
                                  javax.servlet.http.HttpServletResponse pResponse,
                                  java.lang.String pMethodName)
                           throws javax.servlet.ServletException,
                                  java.io.IOException
Prints the formatted information of a method invocation on a service

Throws:
javax.servlet.ServletException - if an error occurred while processing the servlet request
java.io.IOException - if an error occurred while reading or writing the servlet request

printMethodInvocationResult

protected void printMethodInvocationResult(javax.servlet.http.HttpServletRequest pRequest,
                                           javax.servlet.http.HttpServletResponse pResponse,
                                           java.lang.String pMethodName,
                                           java.lang.Object pResult)
                                    throws java.io.IOException
Print out the invocation method result. By default, a table containing the returned value and class.

Throws:
java.io.IOException

handleInvocationException

protected void handleInvocationException(javax.servlet.http.HttpServletRequest pRequest,
                                         javax.servlet.http.HttpServletResponse pResponse,
                                         java.lang.String pMethodName,
                                         java.lang.Throwable pException)
                                  throws java.io.IOException
Handle an invocation exception. By default, just print out a stack trace.

Throws:
java.io.IOException

getScopeRelativePath

public java.lang.String getScopeRelativePath(java.lang.String pPath)
Return the scope relative path for a given component. If the component is not the child of a scope manager, returns null.


printProperty

public void printProperty(javax.servlet.http.HttpServletRequest pRequest,
                          javax.servlet.http.HttpServletResponse pResponse,
                          java.lang.String pPropertyName)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Prints the formatted information for a service, including the name, directory listing, and properties.

Throws:
javax.servlet.ServletException - if an error occurred while processing the servlet request
java.io.IOException - if an error occurred while reading or writing the servlet request

getPropertyConfigurationErrorString

protected java.lang.String getPropertyConfigurationErrorString(javax.servlet.http.HttpServletRequest pRequest,
                                                               javax.servlet.http.HttpServletResponse pResponse,
                                                               java.lang.String pPropertyName,
                                                               java.lang.String pNewValue,
                                                               atg.nucleus.logging.CollectingLoggingSupport pLoggerCollecting)
Return a string to represent property configuration errors.


sortEventSetDescriptors

protected java.beans.EventSetDescriptor[] sortEventSetDescriptors(java.beans.EventSetDescriptor[] pDescriptors)
Sorts the list of eventSet descriptors by eventSet name and returns a new list of the sorted descriptors.


printEventSets

protected void printEventSets(javax.servlet.http.HttpServletRequest pRequest,
                              javax.servlet.http.HttpServletResponse pResponse,
                              javax.servlet.ServletOutputStream pOut)
                       throws javax.servlet.ServletException,
                              java.io.IOException
Prints a listing of all the service's event sets

Throws:
javax.servlet.ServletException
java.io.IOException

printEventSet

public void printEventSet(javax.servlet.http.HttpServletRequest pRequest,
                          javax.servlet.http.HttpServletResponse pResponse,
                          java.lang.String pEventSetName)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Prints an event set

Throws:
javax.servlet.ServletException - if an error occurred while processing the servlet request
java.io.IOException - if an error occurred while reading or writing the servlet request

printAdmin

protected void printAdmin(javax.servlet.http.HttpServletRequest pRequest,
                          javax.servlet.http.HttpServletResponse pResponse,
                          javax.servlet.ServletOutputStream pOut)
                   throws javax.servlet.ServletException,
                          java.io.IOException
Prints the administrative information specific to this service. By default, this does nothing. Subclasses should override this to print service-specific information.

Throws:
javax.servlet.ServletException - if an error occurred
java.io.IOException - if an error occurred

formatObject

protected java.lang.String formatObject(java.lang.Object pObject,
                                        javax.servlet.http.HttpServletRequest pRequest)
Formats the specified object, turning it into a String representation of its value. If the object is a NameContextElement, then a link to the service is returned.


formatLongObject

protected java.lang.String formatLongObject(java.lang.Object pObject,
                                            javax.servlet.http.HttpServletRequest pRequest)
Formats the specified object, turning it into the "long form" String representation of its value. If the object is a NameContextElement, then a link to the service is returned.


formatServiceName

protected java.lang.String formatServiceName(java.lang.String pServiceName,
                                             javax.servlet.http.HttpServletRequest pRequest)
Returns the specified service name in a manner that is usable as a link, by adding the servlet path and appending a "/" if necessary.


formatServiceName

protected java.lang.String formatServiceName(java.lang.String pServiceName,
                                             java.lang.String pSuffix,
                                             javax.servlet.http.HttpServletRequest pRequest)
Returns the specified service name in a manner that is usable as a link, by adding the servlet path and appending a "/" if necessary.


formatServiceLink

protected java.lang.String formatServiceLink(java.lang.String pServiceName,
                                             javax.servlet.http.HttpServletRequest pRequest)
Returns the opening "href" tag that will lead back to the specified absolute service name


formatPropertyValue

public java.lang.String formatPropertyValue(java.lang.Object pValue,
                                            javax.servlet.http.HttpServletRequest pRequest,
                                            PropertyValueFormatter pFormatter)
Formats the specified value into a String, using the "short form" of the value.

Specified by:
formatPropertyValue in interface PropertyValueFormatter

formatLongPropertyValue

public java.lang.String formatLongPropertyValue(java.lang.Object pValue,
                                                javax.servlet.http.HttpServletRequest pRequest,
                                                PropertyValueFormatter pFormatter)
Formats the specified value into a String, using the "long form" of the value.

Specified by:
formatLongPropertyValue in interface PropertyValueFormatter

getResourceString

protected java.lang.String getResourceString(java.lang.String pPattern)
Loads the resource bundle, if not already loaded, and returns the requested resource string.


getResourceString

protected java.lang.String getResourceString(java.lang.String pPattern,
                                             java.lang.Object[] pPatternArgs)
Loads the resource bundle, if not already loaded, and returns the requested resource string with any args inserted.


getResourceBundle

protected java.util.ResourceBundle getResourceBundle()
The ResourceBundle to use with this AdminServlet. Override this method to use a different resource bundle


setResolvedService

public void setResolvedService(java.lang.Object pService)
Sets the service component as resolved by Nucleus. In some cases the object resolved from Nucleus is a proxy to the real one, so the admin servlet may require a reference to the proxy object.


getAbsoluteNameOf

protected java.lang.String getAbsoluteNameOf(java.lang.Object pComponent)
Return the absolute name of pComponent. Attempts to get the absolute path of the component via unresolveName

Parameters:
pComponent - the component to get the absolute name of
Returns:
the absolute name of the specified object, or null if the absolute name could not be found (because the component could not be found by unresolveName and it's not a name context element).