Slicer 5.11
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 <vtkRemoteIOExport.h>
6
7// VTK includes
8#include <vtkObject.h>
9#include <vtkObjectFactory.h>
10
11// MRML includes
12#include "vtkURIHandler.h"
13
14class VTK_RemoteIO_EXPORT vtkHTTPHandler : public vtkURIHandler
15{
16public:
20 void PrintSelf(ostream& os, vtkIndent indent) override;
21
24 int CanHandleURI(const char* uri) override;
25
30 void SetForbidReuse(int value);
32
34 void StageFileRead(const char* source, const char* destination) override;
36 void StageFileWrite(const char* source, const char* destination) override;
38 void InitTransfer() override;
39 int CloseTransfer() override;
40
42 vtkSetStringMacro(CaCertificatesPath);
43 vtkGetStringMacro(CaCertificatesPath);
44
45protected:
47 ~vtkHTTPHandler() override;
50
51private:
52 class vtkInternal;
53 vtkInternal* Internal;
54 char* CaCertificatesPath{ nullptr };
55};
56
57#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)