planetj.dataengine.sqloperation.http
Class HttpOperationManager

java.lang.Object
  |
  +--planetj.dataengine.sqloperation.http.HttpOperationManager

public class HttpOperationManager
extends Object

This class contains methods for handling and preparing Operations. It handles actions such as executing or putting objects in the request or response.


Field Summary
static String className
           
 
Method Summary
 StringBuffer appendOperationInstructions(Operation operation, StringBuffer html)
          Deprecated. This method is no longer supported as of (5/23/2003). It was replaced with HTMLGenerator.appendParagraphHeading(String, StringBuffer). This method will be removed on (01/01/2004).
 StringBuffer appendOperationURI(Operation operation, StringBuffer sb)
          Appends a complete URI that can be used to directly access the operation
 StringBuffer appendOperationURI(Operation operation, StringBuffer sb, javax.servlet.http.HttpServletRequest req)
          Appends a complete URI that can be used to directly access the operation
 String getBaseURL()
          Gets the base URL
 IOperationContext getContext(Operation operation, String contextKey, javax.servlet.http.HttpServletRequest request)
          Gets the SQLOperation's ApplicationSQLContext.
 Row getInsertRow(SQLContext context, DataEngineServlet servlet, javax.servlet.http.HttpServletRequest request)
          Prepares the given Operation to be inserted.
 Operation prepareOperation(Operation operation, boolean replaceContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Prepares the given Operation to be viewed.
 Operation prepareOperation(Operation operation, DataEngineServlet servlet, boolean replaceContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Prepares the given Operation to be viewed.
 void setBaseURL(String newBaseURL)
          Sets the base URL.
static void setSingleton(HttpOperationManager singleton)
          Sets the singleton instance of the HttpOperationManager.
static HttpOperationManager singleton()
          Gets the singleton instance of HttpOperationManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

className

public static final String className
Method Detail

appendOperationInstructions

public StringBuffer appendOperationInstructions(Operation operation,
                                                StringBuffer html)
                                         throws CMException
Deprecated. This method is no longer supported as of (5/23/2003). It was replaced with HTMLGenerator.appendParagraphHeading(String, StringBuffer). This method will be removed on (01/01/2004).

Appends the givin operation's instructions. The instructions are generated within a table

CMException

appendOperationURI

public StringBuffer appendOperationURI(Operation operation,
                                       StringBuffer sb)
                                throws CMException
Appends a complete URI that can be used to directly access the operation

CMException

appendOperationURI

public StringBuffer appendOperationURI(Operation operation,
                                       StringBuffer sb,
                                       javax.servlet.http.HttpServletRequest req)
                                throws CMException
Appends a complete URI that can be used to directly access the operation

CMException

getBaseURL

public String getBaseURL()
Gets the base URL


getContext

public IOperationContext getContext(Operation operation,
                                    String contextKey,
                                    javax.servlet.http.HttpServletRequest request)
                             throws CMException
Gets the SQLOperation's ApplicationSQLContext.

CMException

getInsertRow

public Row getInsertRow(SQLContext context,
                        DataEngineServlet servlet,
                        javax.servlet.http.HttpServletRequest request)
                 throws CMException
Prepares the given Operation to be inserted.

CMException

prepareOperation

public Operation prepareOperation(Operation operation,
                                  DataEngineServlet servlet,
                                  boolean replaceContext,
                                  javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws CMException
Prepares the given Operation to be viewed. (executes to operation, sets any properties of the operation on the results, puts the results and/or the operation's context in the session)

CMException

prepareOperation

public Operation prepareOperation(Operation operation,
                                  boolean replaceContext,
                                  javax.servlet.http.HttpServletRequest request,
                                  javax.servlet.http.HttpServletResponse response)
                           throws CMException
Prepares the given Operation to be viewed. (executes to operation, sets any properties of the operation on the results, puts the results and/or the operation's context in the session)

CMException

setBaseURL

public void setBaseURL(String newBaseURL)
Sets the base URL. This is an internal DataEngine method and should not be invoked by applications


setSingleton

public static void setSingleton(HttpOperationManager singleton)
Sets the singleton instance of the HttpOperationManager. This only needs to be done if the HttpOperationManager class has been overridden. The singleton instance is not synchronized, so this method should only be invoked during initialization.


singleton

public static HttpOperationManager singleton()
Gets the singleton instance of HttpOperationManager