public final class LightweightProfileServer extends Object implements ProfileHandler
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.public List findProfiles(XMLQuery query) throws ProfileException
ProfileHandler
findProfiles
in interface ProfileHandler
query
- Search criteria.Profile
objects.ProfileException
- If any other error occurs.public Profile get(String profID)
get
in interface ProfileHandler
profID
- a String
value.Profile
value.public String getID()
getID
in interface ProfileHandler
Copyright © 1999-2014 Apache OODT. All Rights Reserved.