Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
vtkHTTPHandler.h
Go to the documentation of this file.
1#ifndef __vtkHTTPHandler_h
2#define __vtkHTTPHandler_h
3
4// RemoteIO includes
5#include <vtkRemoteIOConfigure.h>
6#include "vtkRemoteIO.h"
7
8// VTK includes
9#include <vtkObject.h>
10#include <vtkObjectFactory.h>
11
12// MRML includes
13#include "vtkURIHandler.h"
14
15class VTK_RemoteIO_EXPORT vtkHTTPHandler : public vtkURIHandler
16{
17public:
21 void PrintSelf(ostream& os, vtkIndent indent) override;
22
25 int CanHandleURI(const char* uri) override;
26
31 void SetForbidReuse(int value);
33
35 void StageFileRead(const char* source, const char* destination) override;
37 void StageFileWrite(const char* source, const char* destination) override;
39 void InitTransfer() override;
40 int CloseTransfer() override;
41
43 vtkSetStringMacro(CaCertificatesPath);
44 vtkGetStringMacro(CaCertificatesPath);
45
46protected:
48 ~vtkHTTPHandler() override;
51
52private:
53 class vtkInternal;
54 vtkInternal* Internal;
55 char* CaCertificatesPath{ nullptr };
56};
57
58#endif
void StageFileRead(const char *source, const char *destination) override
This function wraps curl functionality to download a specified URL to a specified dir.
vtkHTTPHandler(const vtkHTTPHandler &)
int GetForbidReuse()
int CloseTransfer() override
static vtkHTTPHandler * New()
The Usual vtk class functions.
void PrintSelf(ostream &os, vtkIndent indent) override
int CanHandleURI(const char *uri) override
void operator=(const vtkHTTPHandler &)
void StageFileWrite(const char *source, const char *destination) override
~vtkHTTPHandler() override
void SetForbidReuse(int value)
void InitTransfer() override
NOTE: Subclasses should implement these method.
virtual void StageFileRead(const char *source, const char *destination)
virtual void StageFileWrite(const char *source, const char *destination)