|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.sswap.ontologies.data.api.DataFactory
public class DataFactory
Main entry point for support for the data ontology. Use this factory to create a data object to allow reading/writing of literal or resource data, with optional "attachment" (literal data base64 encoding and decoding) or HTTP Basic authentication.
| Nested Class Summary | |
|---|---|
static class |
DataFactory.Open
Directives on how to open data elements for reading and writing. |
| Constructor Summary | |
|---|---|
DataFactory()
|
|
| Method Summary | |
|---|---|
private static Data |
constructor(SSWAPIndividual sswapIndividual,
DataFactory.Open state,
boolean attachment,
boolean httpAuth,
java.lang.String username,
java.lang.String passwd)
|
static Data |
Data(SSWAPIndividual sswapIndividual)
Open with automatic support for literal or resource data, including automatic support for base64 encoded attachments. |
static Data |
Data(SSWAPIndividual sswapIndividual,
DataFactory.Open state)
Open with automatic support for base64 encoded attachments. |
static Data |
Data(SSWAPIndividual sswapIndividual,
DataFactory.Open state,
java.lang.String username,
java.lang.String passwd)
Open with automatic support for base64 encoded attachments or HTTP Basic Authentication. |
private static boolean |
hasLiteralData(SSWAPIndividual sswapIndividual)
|
private static boolean |
isURL(SSWAPIndividual sswapIndividual)
|
static Data |
RawData(SSWAPIndividual sswapIndividual,
DataFactory.Open state)
Raw data (no base64 encoding or decoding). |
static Data |
RawData(SSWAPIndividual sswapIndividual,
DataFactory.Open state,
java.lang.String username,
java.lang.String passwd)
Raw data (no base64 encoding or decoding) with HTTP Basic Authentication. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataFactory()
| Method Detail |
|---|
public static Data Data(SSWAPIndividual sswapIndividual)
throws DataException
sswapIndividual - the individual from which to read the data
DataException - on any error establishing data supportLiteralData
public static Data Data(SSWAPIndividual sswapIndividual,
DataFactory.Open state)
throws DataException
sswapIndividual - the individual from which to read the datastate - directive on how to handle the data source/sink
DataException - on any error establishing data supportLiteralData
public static Data Data(SSWAPIndividual sswapIndividual,
DataFactory.Open state,
java.lang.String username,
java.lang.String passwd)
throws DataException
sswapIndividual - the individual from which to read the datastate - directive on how to handle the data source/sinkusername - User name as defined for HTTP Basic Authenticationpasswd - Password as defined for HTTP Basic Authentication
DataException - on any error establishing data supportLiteralData,
ResourceData
public static Data RawData(SSWAPIndividual sswapIndividual,
DataFactory.Open state)
throws DataException
sswapIndividual - the individual from which to read the datastate - directive on how to handle the data source/sink
DataException - on any error establishing data supportLiteralData,
ResourceData
public static Data RawData(SSWAPIndividual sswapIndividual,
DataFactory.Open state,
java.lang.String username,
java.lang.String passwd)
throws DataException
sswapIndividual - the individual from which to read the datastate - directive on how to handle the data source/sinkusername - User name as defined for HTTP Basic Authenticationpasswd - Password as defined for HTTP Basic Authentication
DataException - on any error establishing data supportResourceData
private static Data constructor(SSWAPIndividual sswapIndividual,
DataFactory.Open state,
boolean attachment,
boolean httpAuth,
java.lang.String username,
java.lang.String passwd)
private static boolean hasLiteralData(SSWAPIndividual sswapIndividual)
private static boolean isURL(SSWAPIndividual sswapIndividual)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||