Package com.softslate.commerce.customer.core


package com.softslate.commerce.customer.core
Provides basic interfaces, classes and utilities used by all the other packages in the Struts layer.

BaseForm and BaseDynaForm extend the Struts ActionForm and DynaActionForm respectively. They provide several properties common to all of the Web requests the application receives, to help the action classes communicate with the rest of the application.

The interfaces ActionUtils and FormUtils, and their corresponding implementations, provide useful utility methods that assist with processing actions and validatidating forms, respectively.

ConfigPlugIn is a Struts PlugIn that initializes singleton objects in the servlet's application scope, for use throughout the system.

LayoutAction is a Tiles controller that is run just before the response is returned to the user. Its two main functions are to set the HTML title for the page being displayed, and to update the paths of the Tiles attributes if a custom layout is being displayed.

SEOFilter is a Java Servlet Filter that translates search-engine friendly URLs into URL formats understood by the application. AppLinkTag does the reverse: it is an extention of the Struts link tag which generates search-engine friendly links.

AppInsertTag is an extension of the Tiles insert tag which provides additional functionality for custom layouts.

HibernateFilter is a Java Servlet Filter implementing the ThreadLocal model for Hibernate sessions. It handles making sure every Hibernate transaction is closed cleanly.

AppMessageResources and AppMessageResourcesFactory extend the Struts MessageResources facility to make it easier to create custom messages for the application, without the danger that the custom messages will be overridden by a future upgrade.

Finally, BaseRequestProcessor is the application's extension of the Struts TilesRequestProcessor. It does a variety of initializations and other processing at the beginning of every request. In addition it overrides Struts' default exception handling to assist with logging and debugging. Its child class, CustomerRequestProcessor, initializes variables used specifically in the customer interface.

  • Class
    Description
    Interface for utility methods used by Struts Action classes.
    ActionUtilsImpl is the default implementation of the ActionUtils interface for the application.
    Maps /api requests to the appropriate .do URI.
     
    Extension of the Tiles InsertTag, to allow for custom layouts.
    Extension of the Struts ELLinkTag, to allow for search-engine friendly URLs for product, category and other pages.
    Extension of the Struts PropertyMessageResources class which wraps a second PropertyMessageResources object holding custom application messages.
    Extension of the Struts MessageResourcesFactory class which creates instances of AppMessageResources instead of the Struts PropertyMessageResources class.
    Provides miscellaneous static methods used by various classes in the Struts layer.
    Extension of the Struts Action class that every action class in the system subclasses in turn.
    Extends the Struts DynaActionForm class to provide base functionality for form classes in the system.
    Methods common to al of the application's servlet filters.
    Extends the Struts ActionForm class to provide base functionality for form classes in the system.
    Subclass of TilesRequestProcessor that negotiates each application request.
     
    Initializes singleton objects in the application scope.
    Subclass of BaseRequestProcessor that negotiates each application request for the customer interface.
    Extension of the Tiles ElInsertTag, to allow for custom layouts.
    The Struts action class responsible for sending emails with information captured from the contact form and other form-to-email forms.
    Struts form class for submissions to the contact form and other form-to-email forms.
    Interface for utility methods used by Struts Form classes.
    FormUtilsImpl is the default implementation of the FormUtils interface for the application.
    A servlet filter that manages a single Hibernate Session for each request, per the ThreadLocal model.
     
     
    The Tiles contoller action that is used by the default "baseLayout", "baseLeftLayout", and "baseCenterLayout" Tiles definitions.
     
     
    Filter to translate incoming URLs from a search-engine friendly format to the format understood by the application.
    A servlet filter that locks the user's browser session so no other actions with a session lock can take place until the first request finishes.
    Action class to handle a request from the user to switch the language that navigational elements, buttons, and labels are displayed with.
    Struts action class that corresponds to the welcome page.