org.wso2.registry.jdbc.handlers
Class TextEditProcessor

java.lang.Object
  extended by org.wso2.registry.jdbc.handlers.EditProcessor
      extended by org.wso2.registry.jdbc.handlers.TextEditProcessor

public class TextEditProcessor
extends EditProcessor

Built-in EditProcessor implementation to process text inputs.


Constructor Summary
TextEditProcessor()
           
 
Method Summary
 void processEditContent(java.lang.String path, java.lang.String editViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Extracts text based user input from a HTML control named "generic-text-input" and sets it as the resource content.
 void processNewContent(java.lang.String path, java.lang.String newViewKey, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Implementations of this method should extract input parameters from new view and create a new resource with that content.
 
Methods inherited from class org.wso2.registry.jdbc.handlers.EditProcessor
getRegistry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextEditProcessor

public TextEditProcessor()
Method Detail

processEditContent

public void processEditContent(java.lang.String path,
                               java.lang.String editViewKey,
                               javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response)
                        throws RegistryException
Extracts text based user input from a HTML control named "generic-text-input" and sets it as the resource content.

Specified by:
processEditContent in class EditProcessor
Parameters:
path - Path of the resource to be edited.
editViewKey - UI key of the edit view. This parameter does not have a useful meaning in text edit processor as only one view is supported.
request - HttpServletRequest instance.
response - HttpServletResponse instance.
Throws:
RegistryException

processNewContent

public void processNewContent(java.lang.String path,
                              java.lang.String newViewKey,
                              javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws RegistryException
Description copied from class: EditProcessor
Implementations of this method should extract input parameters from new view and create a new resource with that content.

Specified by:
processNewContent in class EditProcessor
Parameters:
path - Path of the new resource.
newViewKey - UI key of the new UI.
request - HttpServletRequest recieved from the the CustomUIServlet
response - HttpServletResponse to be sent the the CustomUIServlet
Throws:
RegistryException


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