|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Requests
directly to create differen Request
implementations.
public interface RequestFactory
Factory in order to create any IF-MAP request message.
For PublishUpdate: If no lifetime is given, it's session.
For PublishDelete: If no filter string is given, it is left out --> match all
For Search/Subscribe: Setting same parameters to NULL leaves those parameters out.
Method Summary | |
---|---|
PublishDelete |
createPublishDelete()
Deprecated. Create a new, empty PublishDelete instance. |
PublishDelete |
createPublishDelete(Identifier i1)
Deprecated. Create a new PublishDelete instance for a specific Identifier
in order to delete all of its metadata. |
PublishDelete |
createPublishDelete(Identifier i1,
Identifier i2)
Deprecated. Create a new PublishDelete instance for a link between two
Identifier instances in order to delete all metadata of the link. |
PublishDelete |
createPublishDelete(Identifier i1,
Identifier i2,
String filter)
Deprecated. Create a new PublishDelete instance for a link between two
Identifier instances in order to delete its metadata that matches
the given filter. |
PublishDelete |
createPublishDelete(Identifier i1,
String filter)
Deprecated. Create a new PublishDelete instance for a specific Identifier
in order to delete its metadata that matches the given filter. |
PublishNotify |
createPublishNotify()
Deprecated. Create a new, empty PublishNotify instance. |
PublishNotify |
createPublishNotify(Identifier i1,
Collection<Document> mdlist)
Deprecated. Create a new PublishNotify instance that is used to publish
a list of metadata instances. |
PublishNotify |
createPublishNotify(Identifier i1,
Document md)
Deprecated. Create a new PublishNotify instance that is used to publish
metadata to an Identifier . |
PublishNotify |
createPublishNotify(Identifier i1,
Identifier i2,
Collection<Document> mdlist)
Deprecated. Create a new PublishNotify instance that is used to publish
a list of metadata on a link between two Identifier instances. |
PublishNotify |
createPublishNotify(Identifier i1,
Identifier i2,
Document md)
Deprecated. Create a new PublishNotify instance that is used to publish
metadata on a link between two Identifier instances. |
PublishRequest |
createPublishReq()
Deprecated. Create an empty PublishRequest |
PublishRequest |
createPublishReq(Collection<PublishElement> list)
Deprecated. Create a new PublishRequest that contains the given list of
PublishElement instances. |
PublishRequest |
createPublishReq(PublishElement el)
Deprecated. Create a new PublishRequest that contains the given PublishElement |
PublishUpdate |
createPublishUpdate()
Deprecated. Create a new, empty PublishUpdate instance. |
PublishUpdate |
createPublishUpdate(Identifier i1,
Collection<Document> mdlist)
Deprecated. Create a new PublishUpdate instance that is used to publish
a list of metadata instances. |
PublishUpdate |
createPublishUpdate(Identifier i1,
Collection<Document> mdlist,
MetadataLifetime lifetime)
Deprecated. Create a new PublishUpdate instance that is used to publish
a list of metadata instances with a specific MetadataLifetime . |
PublishUpdate |
createPublishUpdate(Identifier i1,
Document md)
Deprecated. Create a new PublishUpdate instance that is used to publish
metadata to an Identifier . |
PublishUpdate |
createPublishUpdate(Identifier i1,
Document md,
MetadataLifetime lifetime)
Deprecated. Create a new PublishUpdate instance that is used to publish
metadata on an Identifier with a specific MetadataLifetime . |
PublishUpdate |
createPublishUpdate(Identifier i1,
Identifier i2,
Collection<Document> mdlist)
Deprecated. Create a new PublishUpdate instance that is used to publish
a list of metadata on a link between two Identifier instances. |
PublishUpdate |
createPublishUpdate(Identifier i1,
Identifier i2,
Collection<Document> mdlist,
MetadataLifetime lifetime)
Deprecated. Create a new PublishUpdate instance that is used to publish
a list of metadata on a link between two Identifier instances
with a specific MetadataLifetime . |
PublishUpdate |
createPublishUpdate(Identifier i1,
Identifier i2,
Document md)
Deprecated. Create a new PublishUpdate instance that is used to publish
metadata on a link between two Identifier instances. |
PublishUpdate |
createPublishUpdate(Identifier i1,
Identifier i2,
Document md,
MetadataLifetime lifetime)
Deprecated. Create a new PublishUpdate instance that is used to publish
metadata on a link between two Identifier instances with a specific
MetadataLifetime . |
SearchRequest |
createSearchRequest()
Deprecated. Create a SearchRequest with default values. |
SearchRequest |
createSearchRequest(String matchLinks,
Integer maxDepth,
String terminalIdentifiers,
Integer maxSize,
String resultFilter,
Identifier start)
Deprecated. Create a new SearchRequest in order to perform an IF-MAP search. |
SubscribeDelete |
createSubscribeDelete()
Deprecated. Create a SubscribeDelete instance with default values. |
SubscribeDelete |
createSubscribeDelete(String name)
Deprecated. Create a new SubscribeDelete instance with the given name. |
SubscribeRequest |
createSubscribeReq()
Deprecated. Create an empty SubscribeRequest |
SubscribeRequest |
createSubscribeReq(List<SubscribeElement> list)
Deprecated. Create a SubscribeRequest with a list of SubscribeElement
instances. |
SubscribeRequest |
createSubscribeReq(SubscribeElement el)
Deprecated. Create a SubscribeRequest with one SubscribeElement . |
SubscribeUpdate |
createSubscribeUpdate()
Deprecated. Create a SubscribeUpdate instance with default values. |
SubscribeUpdate |
createSubscribeUpdate(String name,
String matchLinks,
Integer maxDepth,
String terminalIdentifiers,
Integer maxSize,
String resultFilter,
Identifier start)
Deprecated. Create a SubscribeUpdate instance with the given parameters. |
Method Detail |
---|
PublishRequest createPublishReq()
PublishRequest
PublishRequest
PublishRequest createPublishReq(PublishElement el)
PublishRequest
that contains the given PublishElement
el
- the PublishElement
that is added to the new PublishRequest
PublishRequest
PublishRequest createPublishReq(Collection<PublishElement> list)
PublishRequest
that contains the given list of
PublishElement
instances.
list
- the list of PublishElement
instances that are added
to the new PublishRequest
PublishRequest
PublishUpdate createPublishUpdate()
PublishUpdate
instance.
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Document md)
PublishUpdate
instance that is used to publish
metadata to an Identifier
. The MetadataLifetime
of the
new metadata is set to MetadataLifetime.session
.
i1
- the Identifier
to which the given metadata is published tomd
- the metadata that shall be published
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Document md, MetadataLifetime lifetime)
PublishUpdate
instance that is used to publish
metadata on an Identifier
with a specific MetadataLifetime
.
i1
- the Identifier
to which the given metadata is published tomd
- the metadata that shall be publishedlifetime
- the lifetime of the new metadata
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Identifier i2, Document md)
PublishUpdate
instance that is used to publish
metadata on a link between two Identifier
instances. The
MetadataLifetime
of the new metadata is set to MetadataLifetime.session
.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkmd
- the metadata that shall be published
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Identifier i2, Document md, MetadataLifetime lifetime)
PublishUpdate
instance that is used to publish
metadata on a link between two Identifier
instances with a specific
MetadataLifetime
.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkmd
- the metadata that shall be publishedlifetime
- the lifetime of the new metadata
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Collection<Document> mdlist)
PublishUpdate
instance that is used to publish
a list of metadata instances. The MetadataLifetime
of the new
metadata is set to MetadataLifetime.session
.
i1
- the Identifier
to which the given metadata is published tomdlist
- a list of metadata objects
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Collection<Document> mdlist, MetadataLifetime lifetime)
PublishUpdate
instance that is used to publish
a list of metadata instances with a specific MetadataLifetime
.
i1
- the Identifier
to which the given metadata is published tomdlist
- a list of metadata objectslifetime
- the lifetime of the new metadata
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Identifier i2, Collection<Document> mdlist)
PublishUpdate
instance that is used to publish
a list of metadata on a link between two Identifier
instances.
The MetadataLifetime
of the new metadata is set to
MetadataLifetime.session
.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkmdlist
- a list of metadata objects
PublishUpdate
instancePublishUpdate createPublishUpdate(Identifier i1, Identifier i2, Collection<Document> mdlist, MetadataLifetime lifetime)
PublishUpdate
instance that is used to publish
a list of metadata on a link between two Identifier
instances
with a specific MetadataLifetime
.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkmdlist
- a list of metadata objectslifetime
- the lifetime of the new metadata
PublishUpdate
instancePublishDelete createPublishDelete()
PublishDelete
instance.
PublishDelete
instancePublishDelete createPublishDelete(Identifier i1)
PublishDelete
instance for a specific Identifier
in order to delete all of its metadata.
i1
- the Identifier
that is the target of the delete request
PublishDelete
instancePublishDelete createPublishDelete(Identifier i1, Identifier i2)
PublishDelete
instance for a link between two
Identifier
instances in order to delete all metadata of the link.
i1
- the first Identifier
of the linki2
- the second Identifier
of the link
PublishDelete
instancePublishDelete createPublishDelete(Identifier i1, String filter)
PublishDelete
instance for a specific Identifier
in order to delete its metadata that matches the given filter.
i1
- the Identifier
that is the target of the delete requestfilter
- a filter that expresses the metadata that shall be deleted
PublishDelete
instancePublishDelete createPublishDelete(Identifier i1, Identifier i2, String filter)
PublishDelete
instance for a link between two
Identifier
instances in order to delete its metadata that matches
the given filter.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkfilter
- a filter that expresses the metadata that shall be deleted
PublishDelete
instancePublishNotify createPublishNotify()
PublishNotify
instance.
PublishNotify
instancePublishNotify createPublishNotify(Identifier i1, Document md)
PublishNotify
instance that is used to publish
metadata to an Identifier
.
i1
- the Identifier
to which the given metadata is published tomd
- the metadata that shall be published
PublishNotify
instancePublishNotify createPublishNotify(Identifier i1, Identifier i2, Document md)
PublishNotify
instance that is used to publish
metadata on a link between two Identifier
instances.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkmd
- the metadata that shall be published
PublishNotify
instancePublishNotify createPublishNotify(Identifier i1, Collection<Document> mdlist)
PublishNotify
instance that is used to publish
a list of metadata instances.
i1
- the Identifier
to which the given metadata is published tomdlist
- a list of metadata objects
PublishNotify
instancePublishNotify createPublishNotify(Identifier i1, Identifier i2, Collection<Document> mdlist)
PublishNotify
instance that is used to publish
a list of metadata on a link between two Identifier
instances.
The MetadataLifetime
of the new metadata is set to
MetadataLifetime.session
.
i1
- the first Identifier
of the linki2
- the second Identifier
of the linkmdlist
- a list of metadata objects
PublishNotify
instanceSearchRequest createSearchRequest()
SearchRequest
with default values. You need to set at
least the start Identifier
with
SearchHolder.setStartIdentifier(Identifier)
afterwards!
SearchRequest
instanceSearchRequest createSearchRequest(String matchLinks, Integer maxDepth, String terminalIdentifiers, Integer maxSize, String resultFilter, Identifier start)
SearchRequest
in order to perform an IF-MAP search.
matchLinks
- the match-links filter (null means match-all, an empty
String
means match-nothing)maxDepth
- max-depth of the search (default is left out)terminalIdentifiers
- comma separated list of terminal identifier
types (for example 'identity,device')maxSize
- max-size of search result (default is left out)resultFilter
- the result-filter filter (null means match-all, an
empty String
means match-nothing)start
- the start Identifier
SearchRequest
instanceSubscribeRequest createSubscribeReq()
SubscribeRequest
SubscribeRequest
instanceSubscribeRequest createSubscribeReq(SubscribeElement el)
SubscribeRequest
with one SubscribeElement
.
el
- the SubscribeElement
that is added to the new
SubscribeRequest
. This can either be SubscribeUpdate
or
SubscribeDelete
.
SubscribeRequest
SubscribeRequest createSubscribeReq(List<SubscribeElement> list)
SubscribeRequest
with a list of SubscribeElement
instances.
list
- the list of SubscribeElement
instances that are added
to the new SubscribeRequest
. The SubscribeElement
instances
are either SubscribeUpdate
or SubscribeDelete
instances.
SubscribeRequest
SubscribeUpdate createSubscribeUpdate()
SubscribeUpdate
instance with default values. You need
to add the start Identifier
with
SearchHolder.setStartIdentifier(Identifier)
and the name with
SubscribeElement.setName(String)
afterwards!
SubscribeUpdate
instanceSubscribeUpdate createSubscribeUpdate(String name, String matchLinks, Integer maxDepth, String terminalIdentifiers, Integer maxSize, String resultFilter, Identifier start)
SubscribeUpdate
instance with the given parameters.
name
- the name of the subscriptionmatchLinks
- the match-links filter (null means match-all, an empty
String
means match-nothing)maxDepth
- max-depth of the search (default is left out)terminalIdentifiers
- comma separated list of terminal identifier
types (for example 'identity,device')maxSize
- max-size of search result (default is left out)resultFilter
- the result-filter filter (null means match-all, an
empty String
means match-nothing)start
- the start Identifier
SubscribeUpdate
instanceSubscribeDelete createSubscribeDelete()
SubscribeDelete
instance with default values. You need
to set the name with SubscribeElement.setName(String)
afterwards!
SubscribeDelete
instanceSubscribeDelete createSubscribeDelete(String name)
SubscribeDelete
instance with the given name.
name
- the name of the subscription that shall be deleted on the
MAPS.
SubscribeDelete
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |