|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.profile.handlers.lightweight.LightweightProfileServer
public final class LightweightProfileServer
A lightweight profile server. A lightweight profile server is lightweight because it doesn't rely on any external database or other search/retrieval mechanism.
| Constructor Summary | |
|---|---|
LightweightProfileServer()
Create a lightweight profile server using defaults. |
|
LightweightProfileServer(Properties props)
Create a lightweight profile server using the given properties. |
|
LightweightProfileServer(URL url,
String id)
Create a lightweight profile server using the given URL. |
|
| Method Summary | |
|---|---|
List |
findProfiles(XMLQuery query)
Find a set of profiles that match the given query. |
Profile |
get(String profID)
Get a single profile matching the given ID. |
String |
getID()
Get my ID. |
static void |
main(String[] argv)
Application execution entry point. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LightweightProfileServer()
throws IOException,
SAXException,
MalformedURLException
IOException - If an I/O error occurs.
SAXException - If an error occurs parsing the profile file.
MalformedURLException - If the default profile URL is malformed.
public LightweightProfileServer(Properties props)
throws IOException,
SAXException,
MalformedURLException
profiles.url,
which is the URL of the file containing profile definitions that this server
will read and serve.
props - Properties.
IOException - If an I/O error occurs.
SAXException - If an error occurs parsing the profile file.
MalformedURLException - If the URL to the profile file is malformed.
public LightweightProfileServer(URL url,
String id)
throws IOException,
SAXException,
MalformedURLException
url - URL of the file containing profile definitions that this server will read and serve.id - Identifier to report for when this handler is queried by name.
IOException - If an I/O error occurs.
SAXException - If an error occurs parsing the profile file.
MalformedURLException - If url is malformed.| Method Detail |
|---|
public List findProfiles(XMLQuery query)
throws ProfileException
ProfileHandler
findProfiles in interface ProfileHandlerquery - Search criteria.
Profile objects.
ProfileException - If any other error occurs.public Profile get(String profID)
get in interface ProfileHandlerprofID - a String value.
Profile value.public String getID()
getID in interface ProfileHandler
public static void main(String[] argv)
throws Exception
argv - Command-line arguments.
Exception - Should any error occur.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||