Home

 

Sample: Retrieving names from the Profiles directory

PeopleLike.java is a Java™ program that displays all the people in the Connections Profiles directory whose name matches the given input. It demonstrates how to read an Atom feed that does not require authentication from the Profiles server, and how to process the returned content using XPath.

 

Requirements

To run the PeopleLike.java program, have the following software and information:

 

Install the sample

To install the sample...

  1. Download the PeopleLike.java file by right-clicking the following link.

    PeopleLike.java Save the link to a local directory, such as c:\samples. Name the file, PeopleLike.java.

    The file name is case-sensitive.

  2. Compile the program. For example, from a command prompt, enter the following command:

      C:\sample>\jdk150\bin\javac PeopleLike.java
      

 

Running the sample

To run the sample...

 

Example

The following example queries the Profiles for users with the name, daryn.

 

Source

The following Java code is the source of the PeopleLike.java program:


Samples


+

Search Tips   |   Advanced Search