Static ResourcesStatic Resources
Home > Books > Getting Started > Quick Introduction > Code First > Static Resources

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Code First - Static

If a resource representation is static you don't need a program to implement an accessor. Instead simply refer to the resource representation in the mapping rule. For example, the following mapping rule

<rewrite>
  <match>ffcpl:/helloworld-text</match>
  <to>ffcpl:/helloworld.txt</to>
</rewrite>

will cause NetKernel to use the ffcpl: scheme accessor to retrieve the physical resource in the file helloworld.txt. Run this version at the address http://localhost:8080/tutorial/helloworld-text.

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.