Class ApplicationRegistration
java.lang.Object
com.janeirodigital.sai.core.resources.ReadableResource
com.janeirodigital.sai.core.resources.CRUDResource
com.janeirodigital.sai.core.agents.AgentRegistration
com.janeirodigital.sai.core.agents.ApplicationRegistration
Modifiable instantiation of an
Application Registration.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.janeirodigital.sai.core.resources.ReadableResource
contentType, dataset, exists, httpClient, jsonLdContext, resource, saiSession, unprotected, uri
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationRegistration
get
(URI uri, SaiSession saiSession) Callget(URI, SaiSession, ContentType)
without specifying a desired content type for retrievalstatic ApplicationRegistration
get
(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) Get aApplicationRegistration
at the provideduri
reload()
Reload a new instance ofApplicationRegistration
using the attributes of the current instanceMethods inherited from class com.janeirodigital.sai.core.agents.AgentRegistration
generateContainedUri, hasAccessGrant
Methods inherited from class com.janeirodigital.sai.core.resources.CRUDResource
delete, update
Methods inherited from class com.janeirodigital.sai.core.resources.ReadableResource
checkReadableResponse, read
-
Method Details
-
get
public static ApplicationRegistration get(URI uri, SaiSession saiSession, com.janeirodigital.sai.httputils.ContentType contentType) throws SaiException, com.janeirodigital.sai.httputils.SaiHttpNotFoundException Get aApplicationRegistration
at the provideduri
- Parameters:
uri
- URI of theApplicationRegistration
to getsaiSession
-SaiSession
to assigncontentType
-ContentType
to use for retrieval- Returns:
- Retrieved
ApplicationRegistration
- Throws:
SaiException
com.janeirodigital.sai.httputils.SaiHttpNotFoundException
-
get
public static ApplicationRegistration get(URI uri, SaiSession saiSession) throws com.janeirodigital.sai.httputils.SaiHttpNotFoundException, SaiException Callget(URI, SaiSession, ContentType)
without specifying a desired content type for retrieval- Parameters:
uri
- URI of theApplicationRegistration
to getsaiSession
-SaiSession
to assign- Returns:
- Retrieved
ApplicationRegistration
- Throws:
com.janeirodigital.sai.httputils.SaiHttpNotFoundException
SaiException
-
reload
public ApplicationRegistration reload() throws com.janeirodigital.sai.httputils.SaiHttpNotFoundException, SaiExceptionReload a new instance ofApplicationRegistration
using the attributes of the current instance- Returns:
- Reloaded
ApplicationRegistration
- Throws:
com.janeirodigital.sai.httputils.SaiHttpNotFoundException
SaiException
-