class FileApi extends TargetedHttpSupport with DebugEnhancedLogging
- Alphabetic
- By Inheritance
- FileApi
- TargetedHttpSupport
- HttpSupport
- DebugEnhancedLogging
- LazyLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
apiPrefix: String
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
val
apiToken: Option[String]
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
val
apiVersion: Option[String]
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
baseUrl: URI
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
connectionTimeout: Int
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
def
debug(msg: String)(implicit enclosing: Name): Unit
- Definition Classes
- DebugEnhancedLogging
-
def
deleteAtTarget[D](endPoint: String)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
deletePath[D](subPath: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- HttpSupport
- def deleteProvenanceJson(): Try[DataverseResponse[Any]]
- def editVariableMetadata(ddiXml: Elem): Try[DataverseResponse[Any]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
extraHeaders: Map[String, String]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get[D](subPath: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- HttpSupport
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getMetadata: Try[FileMeta]
Note: for some reason, the Dataverse's response is not wrapped in the usual envelope here.
Note: for some reason, the Dataverse's response is not wrapped in the usual envelope here.
-
def
getProvenanceDescription: Try[DataverseResponse[Any]]
Returns free-form provenance.
Returns free-form provenance.
-
def
getProvenanceJson: Try[DataverseResponse[Any]]
Returns JSON-based provenance.
Returns JSON-based provenance.
-
def
getUnversionedFromTarget[D](endPoint: String, queryParams: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
Get something for which versions do not apply
Get something for which versions do not apply
- D
the type of model object to expect in the response message
- endPoint
the API endpoint
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
getUnwrapped(subPath: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty): Try[HttpResponse[Array[Byte]]]
- Attributes
- protected
- Definition Classes
- HttpSupport
-
def
getUnwrappedFromTarget(endPoint: String, queryParams: Map[String, String] = Map.empty): Try[HttpResponse[Array[Byte]]]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
getVersionedFromTarget[D](endPoint: String, version: Version = Version.LATEST)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
Get a specific version of something.
Get a specific version of something.
- D
the type of model object to expect in the response message
- endPoint
the API endpoint
- version
the version or version label
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
id: String
- Attributes
- protected
- Definition Classes
- FileApi → TargetedHttpSupport
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
isPersistentId: Boolean
- Attributes
- protected
- Definition Classes
- FileApi → TargetedHttpSupport
-
lazy val
logger: Logger
- Attributes
- protected
- Definition Classes
- LazyLogging
- Annotations
- @transient()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
postFile[D](subPath: String, optFile: Option[File], optJsonMetadata: Option[String] = Option.empty, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
Posts a multi-part message with an optional file and optional JSON metadata part.
Posts a multi-part message with an optional file and optional JSON metadata part. Probably at least one is required, but since this is an internal function, this is not validated.
- D
the payload type for the DataverseResponse
- subPath
subpath to post to
- optFile
the optional file
- optJsonMetadata
the optional metadata
- headers
extra headers
- params
extra query parameters
- returns
a DataverseResponse
- Attributes
- protected
- Definition Classes
- HttpSupport
-
def
postFileToTarget[D](endPoint: String, optFile: Option[File], optMetadata: Option[String], queryParams: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
postJson[D](subPath: String = null, body: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty, isJsonLd: Boolean = false)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- HttpSupport
-
def
postJsonToTarget[D](endPoint: String, body: String, queryParams: Map[String, String] = Map.empty, headers: Map[String, String] = Map.empty, isJsonLd: Boolean = false)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
postText[D](subPath: String = null, body: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- HttpSupport
-
def
put[D](subPath: String = null, body: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- HttpSupport
-
def
putJson[D](subPath: String = null, body: String = null, headers: Map[String, String] = Map.empty, params: Map[String, String] = Map.empty, isJsonLd: Boolean = false)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- HttpSupport
-
def
putJsonToTarget[D](endPoint: String, body: String, queryParams: Map[String, String] = Map.empty, isJsonLd: Boolean = false)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
def
putProvenanceDescription(p: String): Try[DataverseResponse[Any]]
Sets free-form provenance.
Sets free-form provenance.
-
def
putProvenanceJson(p: Provenance): Try[DataverseResponse[Any]]
Sets JSON-based provenance.
Sets JSON-based provenance.
- p
provenance to set
-
def
putToTarget[D](endPoint: String, body: String, queryParams: Map[String, String] = Map.empty)(implicit arg0: Manifest[D]): Try[DataverseResponse[D]]
- Attributes
- protected
- Definition Classes
- TargetedHttpSupport
-
val
readTimeout: Int
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
def
redetect(dryRun: Boolean = false): Try[DataverseResponse[DetectionResult]]
- dryRun
do not save the change
- def reingest(): Try[DataverseResponse[DataMessage]]
-
def
replace(optDataFile: Option[File] = Option.empty, optFileMetadata: Option[FileMeta] = Option.empty): Try[DataverseResponse[FileList]]
- optDataFile
the replacement file
- optFileMetadata
the replacement metadata
-
def
replaceFileItem(optDataFile: Option[File] = Option.empty, optFileMetadata: Option[String] = Option.empty): Try[DataverseResponse[FileList]]
- optDataFile
the replacement file
- optFileMetadata
the replacement metadata
-
def
replaceWithPrestagedFile(prestagedFile: PrestagedFile): Try[DataverseResponse[FileList]]
Replaces a file with a pre-staged file.
Replaces a file with a pre-staged file.
- prestagedFile
metadata about the prestaged file
-
def
restrict(restrict: Boolean): Try[DataverseResponse[DataMessage]]
- restrict
true
if the file must have restricted access,false
for open access
-
val
sendApiTokenViaBasicAuth: Boolean
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
targetBase: String
- Attributes
- protected
- Definition Classes
- FileApi → TargetedHttpSupport
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
trace[V](value: Text[V])(implicit enclosing: Name): Unit
- Definition Classes
- DebugEnhancedLogging
-
val
unblockKey: Option[String]
- Attributes
- protected
- Definition Classes
- FileApi → HttpSupport
- def uningest(): Try[DataverseResponse[DataMessage]]
-
def
updateMetadata(fm: FileMeta): Try[DataverseResponse[Nothing]]
Unfortunately, the body of the response is not valid JSON, hence the
Nothing
payload type.Unfortunately, the body of the response is not valid JSON, hence the
Nothing
payload type.- fm
file metadata
-
def
updateMetadata(fm: String): Try[DataverseResponse[Nothing]]
Unfortunately, the body of the response is not valid JSON, hence the
Nothing
payload type.Unfortunately, the body of the response is not valid JSON, hence the
Nothing
payload type.- fm
file metadata
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()