@Path(value="/")
public interface CswSubscribe
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createEvent(GetRecordsResponseType recordsResponse)
Consume a create event
|
javax.ws.rs.core.Response |
createRecordsSubscription(GetRecordsRequest request)
Create a subscription
|
javax.ws.rs.core.Response |
createRecordsSubscription(GetRecordsType request)
Create a subscription
|
javax.ws.rs.core.Response |
deleteEvent(GetRecordsResponseType recordsResponse)
Consume a delete event
|
javax.ws.rs.core.Response |
deleteRecordsSubscription(String requestId)
Deletes an active subscription
|
javax.ws.rs.core.Response |
getRecordsSubscription(String requestId)
Get an active subscription
|
javax.ws.rs.core.Response |
ping()
Consume a ping event
|
javax.ws.rs.core.Response |
updateEvent(GetRecordsResponseType recordsResponse)
Consume an update event
|
javax.ws.rs.core.Response |
updateRecordsSubscription(String requestId,
GetRecordsType request)
Updates an active subscription
|
@DELETE @Path(value="/{requestId}") @Produces(value="*/*") javax.ws.rs.core.Response deleteRecordsSubscription(@PathParam(value="requestId") String requestId) throws CswException
requestId
- the requestId of the subscription to be removedCswException
- for validation errors returns a 400@GET @Path(value="/{requestId}") @Produces(value="*/*") javax.ws.rs.core.Response getRecordsSubscription(@PathParam(value="requestId") String requestId) throws CswException
requestId
- the requestId of the subscription to getCswException
- for validation errors returns a 400@PUT @Path(value="/{requestId}") @Consumes(value={"text/xml","application/xml"}) @Produces(value="*/*") javax.ws.rs.core.Response updateRecordsSubscription(@PathParam(value="requestId") String requestId, GetRecordsType request) throws CswException
requestId
- the requestId of the subscription to getrequest
- the GetRocordsType request which contains the filter that the subscription is
subscribing too and a ResponseHandler URL that will handle the CswRecordCollection response
messages. When a create, update or delete event is received a CswRecordCollection will be
sent via a POST, PUT or DELETE to the ResponseHandler URL.CswException
- for validation errors returns a 400@GET @Produces(value="*/*") javax.ws.rs.core.Response createRecordsSubscription(@QueryParam(value="") GetRecordsRequest request) throws CswException
request
- the GetRecordsRequest request which contains the filter that the subscription is
subscribing too and a ResponseHandler URL that will handle the CswRecordCollection response
messages. When a create, update or delete event is received a CswRecordCollection will be
sent via a POST, PUT or DELETE to the ResponseHandler URL.CswException
- for validation errors returns a 400@POST @Consumes(value={"text/xml","application/xml"}) @Produces(value="*/*") javax.ws.rs.core.Response createRecordsSubscription(GetRecordsType request) throws CswException
request
- the GetRecordsType request which contains the filter that the subscription is
subscribing too and a ResponseHandler URL that will handle the CswRecordCollection response
messages. When a create, update or delete event is received a CswRecordCollection will be
sent via a POST, PUT or DELETE to the ResponseHandler URLCswException
- for validation errors returns a 400@POST @Path(value="/event") @Consumes(value={"text/xml","application/xml"}) @Produces(value={"text/xml","application/xml"}) javax.ws.rs.core.Response createEvent(GetRecordsResponseType recordsResponse) throws CswException
recordsResponse
- the GetRecordsResponseType search results must be urn:catalog:metacard
formatCswException
- for validation errors returns a 400@PUT @Path(value="/event") @Consumes(value={"text/xml","application/xml"}) @Produces(value={"text/xml","application/xml"}) javax.ws.rs.core.Response updateEvent(GetRecordsResponseType recordsResponse) throws CswException
recordsResponse
- the GetRecordsResponseType search results must be urn:catalog:metacard
format with two metacards the updated one being the first and the previous version being
the secondsCswException
- for validation errors returns a 400@DELETE @Path(value="/event") @Consumes(value={"text/xml","application/xml"}) @Produces(value={"text/xml","application/xml"}) javax.ws.rs.core.Response deleteEvent(GetRecordsResponseType recordsResponse) throws CswException
recordsResponse
- the GetRecordsResponseType search results must be urn:catalog:metacard
formatCswException
- for validation errors returns a 400@HEAD @Path(value="/event") javax.ws.rs.core.Response ping()
This work is licensed under a Creative Commons Attribution 4.0 International License.