First, use Ant to build the example to the dist/sampleatomserver directory.
For example on UNIX:$ cd examples/atomserver $ antOr on Windows:
> cd examples/atomserver > antNote: This would generate
SampleAtomServer.war
under
SWDP_HOME/atom-impl/samples/SamplAtomServer/dist
directory
Use container provided deployment mechanism to deploy
SampleAtomServer.war
into the container.
Please make sure that the war contents are expanded. The data generated
would be put under directory associated with webapp context root. File
based persistence is used for demonstrating the use of Atom Server framework.
You can get the Service/Introspection document of the sample service, Weblog Manager at Introspection Document: http://<serverName>:<serverPort>/SampleAtomServer/atom
( Note: For username&password you can use admin/admin or test/test. Sample
implementation class com.sun.syndication.atomprotocol.samples.SampleAtomHandlerImpl
extends
com.sun.syndication.atomprotocol.impl.GenericAtomHandlerImpl
class
and overrides public boolean validateUser( String login, String password )
. It then
returns true
if loginId/password combination is either
admin/admin
or test/test
. For any other combination
user validation would fail and AtomServer won't allow users to do any operations.
)
To get collection of entries available you can use
Collection of
Entries: http://<serverName>:<serverPort>/SampleAtomServer/atom/admin/entries
(Note: Replace "admin" with the login_id you used for login )
entry_id
is the id of the entry. By default
if specific id is not mentioned in the Entry, we will use the title of the entry
with spaces replaced with "-".
BlogClient
application which
provides Atom Client library, that support publishing to blogs via Atom Publishing
Protocol.
First, use Ant to build the example to the dist/blogclient directory.
For example on UNIX:$ cd $BLOGAPPS/blogclient $ antOr on Windows:
> cd %BLOGAPPS%\blogclient > ant
To run the example and change directories into the dist/blogclient directory. Run the example using either blogclient.bat (for Windows) or blogclient.sh (for UNIX).
For example on UNIX:$ cd $BLOGAPPS/blogclient/dist/blogclient $ ./blogclient.shOr on Windows:
> cd %BLOGAPPS%\blogclient\dist\blogclient > blogclient
Entry Saved
dialog box. You can submit OK.