The Web Graph Database

wiki:Docs/HttpShellExamples

HTTP Shell: Examples

For examples of using the HttpShell, please refer to the following files that are part of the MeshWorld application:

File Description
web/v/org/infogrid/jee/shell/http/HttpShellVerb/bless.jsp Blessing a MeshObject associated with variable subject
web/v/org/infogrid/jee/shell/http/HttpShellVerb/blessRole.jsp Blessing a Relationship between MeshObjects associated with variables subject and object
web/v/org/infogrid/jee/shell/http/HttpShellVerb/create.jsp Creating a MeshObject associated with variable subject
web/v/org/infogrid/jee/shell/http/HttpShellVerb/delete.jsp Deleting a MeshObject associated with variable subject
web/v/org/infogrid/jee/shell/http/HttpShellVerb/relate.jsp Relating two MeshObjects associated with variables subject and object
web/v/org/infogrid/jee/shell/http/HttpShellVerb/setProperty.jsp Setting a Property associated with variable 1 of MeshObject associated with variable subject to a new value
web/v/org/infogrid/jee/shell/http/HttpShellVerb/unbless.jsp Unblessing a MeshObject associated with variable subject
web/v/org/infogrid/jee/shell/http/HttpShellVerb/unblessRole.jsp Unblessing a Relationship between two MeshObjects associated with variables subject and object
web/v/org/infogrid/jee/shell/http/HttpShellVerb/unrelate.jsp Unrelating two MeshObjects associated with variables subject and object

It is possible to combine several into a larger operation, including, for example:

  • the creation of 3 new MeshObjects, using variables A1, A2, and A3, for example
  • the lookup of 5 existing MeshObjects, using variables B1 through B5, for example
  • the deletion of some MeshObjects
  • the blessing and unblessing of some of them
  • the relating or unrelating of several of them, etc.

If they are part of the same HTTP POST operation, all of them will be executed during the same transaction as part of the HTTP POST processing.

See also:

Last modified 5 years ago Last modified on 04/28/10 20:15:47