core: fix issue related to redirection.

The original resultContentType is forwarded to the CSE executing the
original request.

In case of the original resultContentType is OBJ, XML representation is
used to forward the request then the response is transformed back to OBJ
representation.
Idem if original requestContentType is OBJ.

Signed-off-by: BOLLE Sebastien <sebastien.bolle@orange.com>
Signed-off-by: BONNARDEL Gregory <gbonnardel.ext@orange.com>
3 files changed
tree: 8fe64af02915ba476de1554d8eacd33733f40b27
  1. org.eclipse.om2m.binding.coap/
  2. org.eclipse.om2m.binding.http/
  3. org.eclipse.om2m.binding.service/
  4. org.eclipse.om2m.commons/
  5. org.eclipse.om2m.commons.logging/
  6. org.eclipse.om2m.core/
  7. org.eclipse.om2m.core.service/
  8. org.eclipse.om2m.das.service/
  9. org.eclipse.om2m.das.testsuite/
  10. org.eclipse.om2m.datamapping.jaxb/
  11. org.eclipse.om2m.datamapping.service/
  12. org.eclipse.om2m.flexcontainer.service/
  13. org.eclipse.om2m.interworking.service/
  14. org.eclipse.om2m.ipe.sample/
  15. org.eclipse.om2m.ipe.sample.sdt/
  16. org.eclipse.om2m.ipe.sdt/
  17. org.eclipse.om2m.ipe.sdt.testsuite/
  18. org.eclipse.om2m.persistence.eclipselink/
  19. org.eclipse.om2m.persistence.mongodb/
  20. org.eclipse.om2m.persistence.service/
  21. org.eclipse.om2m.sdt/
  22. org.eclipse.om2m.site.asn-cse/
  23. org.eclipse.om2m.site.in-cse/
  24. org.eclipse.om2m.site.mn-cse/
  25. org.eclipse.om2m.testsuite.flexcontainer/
  26. org.eclipse.om2m.webapp.resourcesbrowser.json/
  27. org.eclipse.om2m.webapp.resourcesbrowser.xml/
  28. protocols/
  29. .gitignore
  30. .project
  31. CONTRIBUTING.md
  32. epl-v10.html
  33. pom.xml
  34. README.md
README.md

About OM2M

OM2M is an open source OSGi-based implementation of the ETSI M2M standard .

Prerequisites:

  • JAVA 1.7 tu run OM2M.
  • Apaceh Maven 3 to build OM2M.

Building OM2M from sources using maven:

  • Go to the parent project directory “org.eclipse.om2m”
  • Build the OM2M project using the following command:

mvn clean install

  • The NSCL product is generated on the this directory: “om2m/org.eclipse.om2m/org.eclipse.om2m.site.nscl/target/products/nscl///”
  • The GSCL product is generated on the this directory: “om2m/org.eclipse.om2m/org.eclipse.om2m.site.gscl/target/products/gscl///”

Configure and Start the NSCL:

  • Go to the NSCL product directory.
  • You can edit the file “configuration/config.ini” to configure the NSCL
  • You can start the NSCL using the following command:

java -jar -ea -Declipse.ignoreApp=true -Dosgi.clean=true -Ddebug=true plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar -console -noExit

Configure and Start the GSCL:

  • Go to the NSCL product directory.
  • The GSCL can be configured and started with the same steps used for the NSCL.
  • Open your browser, then enter the address “http://127.0.0.1:8181” to access the GSCL web interface.

For more details, see http://wiki.eclipse.org/OM2M