JSONDispatcherEntry.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. *+------------------------------------------------------------------------+
  3. *| Licensed Materials - Property of IBM
  4. *| IBM Cognos Products: Viewer
  5. *| (C) Copyright IBM Corp. 2001, 2011
  6. *|
  7. *| US Government Users Restricted Rights - Use, duplication or
  8. *| disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  9. *|
  10. *+------------------------------------------------------------------------+
  11. */
  12. /*
  13. *******************************************************************************
  14. *** View DispatcherEntry.js for information on the dispatcher entry classes ***
  15. *******************************************************************************
  16. */
  17. function JSONDispatcherEntry(oCV) {
  18. // even if this won't be an asynch type request, we can still use the
  19. // AsynchJSONRequest object to make the request
  20. if (oCV) {
  21. this.setRequest(new AsynchJSONRequest(oCV.getGateway(), oCV.getWebContentRoot()));
  22. }
  23. JSONDispatcherEntry.prototype.setDefaultFormFields.call(this);
  24. JSONDispatcherEntry.baseConstructor.call(this, oCV);
  25. }
  26. JSONDispatcherEntry.prototype = new DispatcherEntry();
  27. JSONDispatcherEntry.baseConstructor = DispatcherEntry;
  28. JSONDispatcherEntry.prototype.setDefaultFormFields = function() {
  29. this.addFormField("cv.responseFormat", "JSON");
  30. };