org.wso2.registry.jdbc.handlers
Class XSLTBasedUIEnabledHandler

java.lang.Object
  extended by org.wso2.registry.jdbc.handlers.Handler
      extended by org.wso2.registry.jdbc.handlers.UIEnabledHandler
          extended by org.wso2.registry.jdbc.handlers.XSLTBasedUIEnabledHandler

public class XSLTBasedUIEnabledHandler
extends UIEnabledHandler


Field Summary
protected  javax.xml.transform.Transformer editTransformer
           
protected  java.lang.String editXSLT
           
protected  javax.xml.transform.Transformer viewTransformer
           
protected  java.lang.String viewXSLT
           
 
Fields inherited from class org.wso2.registry.jdbc.handlers.Handler
authorizationUtil, resourceDAO
 
Constructor Summary
XSLTBasedUIEnabledHandler()
           
 
Method Summary
 void delete(RequestContext requestContext)
          Processes the DELETE action of the media type.
 Resource getEdit(RequestContext requestContext)
           
 Resource getRawResource(RequestContext requestContext)
           
 Resource getView(RequestContext requestContext)
           
 void importChild(RequestContext requestContext)
          Invokes when a child resource is imported.
 void importResource(RequestContext requestContext)
          Creates a resource in the given path by fetching the resource content from the given URL.
 void put(RequestContext requestContext)
          Processes the PUT action.
 void putChild(RequestContext requestContext)
          Invokes when a child resource is added.
 void setEditXSLT(java.lang.String editXSLT)
           
 void setViewXSLT(java.lang.String viewXSLT)
           
 
Methods inherited from class org.wso2.registry.jdbc.handlers.UIEnabledHandler
get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewXSLT

protected java.lang.String viewXSLT

viewTransformer

protected javax.xml.transform.Transformer viewTransformer

editXSLT

protected java.lang.String editXSLT

editTransformer

protected javax.xml.transform.Transformer editTransformer
Constructor Detail

XSLTBasedUIEnabledHandler

public XSLTBasedUIEnabledHandler()
Method Detail

setViewXSLT

public void setViewXSLT(java.lang.String viewXSLT)
                 throws RegistryException
Throws:
RegistryException

setEditXSLT

public void setEditXSLT(java.lang.String editXSLT)
                 throws RegistryException
Throws:
RegistryException

getView

public Resource getView(RequestContext requestContext)
                 throws RegistryException
Specified by:
getView in class UIEnabledHandler
Throws:
RegistryException

getEdit

public Resource getEdit(RequestContext requestContext)
                 throws RegistryException
Specified by:
getEdit in class UIEnabledHandler
Throws:
RegistryException

getRawResource

public Resource getRawResource(RequestContext requestContext)
                        throws RegistryException
Specified by:
getRawResource in class UIEnabledHandler
Throws:
RegistryException

put

public void put(RequestContext requestContext)
         throws RegistryException
Description copied from class: Handler
Processes the PUT action. Actual path to which the resource is put may differ from the path given in the requestContext.resourcePath. Therefore, after putting the resource, the actual path to which the resource is put is set in the requestContext.actualPath.

Specified by:
put in class Handler
Parameters:
requestContext - Information about the current request. requestContext.resourcePath: Path to put the resource. requestContext.resource: Resource to put
Throws:
RegistryException - If the media type handler is supposed to handle the put on the media type and if the put fails due a handler specific error

importResource

public void importResource(RequestContext requestContext)
                    throws RegistryException
Description copied from class: Handler
Creates a resource in the given path by fetching the resource content from the given URL.

Specified by:
importResource in class Handler
Parameters:
requestContext - Information about the current request. requestContext.resourcePath: Path to add the new resource. requestContext.sourceURL: URL to fetch the resource content requestContext.resource: Resource instance containing the metadata for the resource to be imported. Once import is done, new resource is created combining the metadata of this metadata object and the imported content.
Throws:
RegistryException - If the media type handler is supposed to handle the import on the media type and if the import fails due a handler specific error

delete

public void delete(RequestContext requestContext)
            throws RegistryException
Description copied from class: Handler
Processes the DELETE action of the media type.

Specified by:
delete in class Handler
Parameters:
requestContext - Information about the current request. requestContext.resourcePath: path path of the resource to be deleted.
Throws:
RegistryException - If the media type handler is supposed to handle the delete on the media type and if the delete fails due a handler specific error

putChild

public void putChild(RequestContext requestContext)
              throws RegistryException
Description copied from class: Handler
Invokes when a child resource is added. Only the media type handlers of collection resources may have a meaningfull implementation of this method.

Specified by:
putChild in class Handler
Parameters:
requestContext - requestContext.resourcePath: path of the parent collection requestContext.resource: New child resource to be added
Throws:
RegistryException - If the media type handler is supposed to handle the putChild on the media type and if the putChild fails due a handler specific error

importChild

public void importChild(RequestContext requestContext)
                 throws RegistryException
Description copied from class: Handler
Invokes when a child resource is imported. Only the media type handlers of collection resources may have a meaningfull implementation of this method.

Specified by:
importChild in class Handler
Parameters:
requestContext - requestContext.resourcePath
Throws:
RegistryException - If the media type handler is supposed to handle the importChild on the media type and if the importChild fails due a handler specific error


Copyright © 2007 Apache Web Services Project. All Rights Reserved.