122 writeFileImpl(
string scheme,
string location, data contents, *hash<auto> opts);
161 object getRestClient(
string scheme,
string location, *hash<auto> opts, reference<string> path,
bool do_connect = True);
172 AbstractPollOperation
op;
The abstract file location handler class.
Definition FileLocationHandler.qc.dox.h:53
The class for handling "rest(s)://"" locations.
Definition FileLocationHandlerRest.qc.dox.h:30
binary getBinaryFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
hash< string, hash< FileHandlerOptionInfo > > getReadOptionsImpl()
Gets supported read options.
object getRestClient(string scheme, string location, *hash< auto > opts, reference< string > path, bool do_connect=True)
Returns a RestClient object for the given location.
OutputStreamWrapper getOutputStreamImpl(string scheme, string location, *hash< auto > opts)
This method only throws a STREAM-WRITE-ERROR exception.
writeFileImpl(string scheme, string location, data contents, *hash< auto > opts)
Writes data to a file at the given location.
const RestClientLocationOpts
Valid REST location options.
Definition FileLocationHandlerRest.qc.dox.h:36
Qore::StreamReader getStreamReaderImpl(string scheme, string location, *hash< auto > opts)
Returns a stream reader for the file's data at the given location.
Qore::AbstractPollOperation getIoPollerForLocationImpl(string scheme, string location, *hash< auto > opts)
Retrieves an I/O poller to retrieve a binary file from the given location.
string getTextFileImpl(string scheme, string location, *hash< auto > opts)
Retrieves a text file from the given location.
Qore::InputStream getBinaryStreamImpl(string scheme, string location, *hash< auto > opts)
Retrieves a binary file from the given location.
hash< string, hash< FileHandlerOptionInfo > > getWriteOptionsImpl()
Gets supported write options.
Wraps an HTTP poller so that the response body is always returned as the output.
Definition FileLocationHandlerRest.qc.dox.h:167
bool goalReached()
Calls the corresponding method in the wrapped poller and returns the return value.
abort()
Aborts the current operation.
string getState()
Calls the corresponding method in the wrapped poller and returns the return value.
AbstractPollOperation op
The HTTP poller to execute.
Definition FileLocationHandlerRest.qc.dox.h:172
auto getOutput()
Returns the value of the "response-body" key in the wrapped HTTP poller's output data.
constructor(AbstractPollOperation op)
Creates the object wrapping the HTTP poller passed as an argument.
string getGoal()
Calls the corresponding method in the wrapped poller and returns the return value.
*hash< SocketPollInfo > continuePoll()
Calls the corresponding method in the wrapped poller and returns the return value.
The abstract file location handler class.
Definition OutputStramWrapper.qc.dox.h:28
Contains all public definitions in the FileLocationHandler module.
Definition FileLocationHandler.qc.dox.h:26