FileDocCategorySizeDatePackage
TransformMgr.javaAPI DocGlassfish v2 API4364Fri May 04 22:24:46 BST 2007com.sun.enterprise.admin.wsmgmt.transform

TransformMgr

public class TransformMgr extends Object
Transformation initialization and cleanup facilitator

Fields Summary
private static final TransformMgr
_instance
private static final Logger
_logger
private static final com.sun.enterprise.util.i18n.StringManager
_stringMgr
Constructors Summary
private TransformMgr()
Private constructor.

    
Methods Summary
public static com.sun.enterprise.admin.wsmgmt.transform.TransformMgrgetInstance()
Returns the singleton instance of this class.

return
singleton instance of this class

        return _instance;
    
public voidinit(java.lang.String appId, com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig wsc)
Initializes the transformation capability for an endpoint.

        if ( wsc == null) {
            return;
        }

        try {
            // if there is atleast one transformation register a filter
             if ((wsc.getRequestTransformationRule() != null) ||
              (wsc.getResponseTransformationRule() != null)) {
                TransformHandler tHandler = new TransformHandler(wsc, appId);
                tHandler.registerFilter(wsc);
            }

        } catch (Exception e) {
            String msg="Configuration initialization error.";
            _logger.log(Level.FINE, msg, e);
        }
    
public voidstop(java.lang.String appId, com.sun.enterprise.admin.wsmgmt.config.spi.WebServiceConfig wsc)
Shuts down transformation capabilities for an endpoint

        if ( wsc == null) {
            return;
        }

        try {
            // if there is atleast one transformation register a filter
             if ((wsc.getRequestTransformationRule() != null) ||
              (wsc.getResponseTransformationRule() != null)) {
                TransformHandler tHandler = new TransformHandler(wsc, appId);
                tHandler.unregisterFilter(appId,wsc);
            }

        } catch (Exception e) {
            String msg="Configuration initialization error.";
            _logger.log(Level.FINE, msg, e);
        }