Slicer 5.6
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:
18
22 void PrintSelf(ostream& os, vtkIndent indent) override;
23
26 int CanHandleURI ( const char *uri ) override;
27
32 void SetForbidReuse(int value);
34
36 void StageFileRead(const char * source, const char * destination) override;
38 void StageFileWrite(const char * source, const char * destination) override;
40 void InitTransfer () override;
41 int CloseTransfer () override;
42
44 vtkSetStringMacro(CaCertificatesPath);
45 vtkGetStringMacro(CaCertificatesPath);
46
47protected:
49 ~vtkHTTPHandler() override;
52
53private:
54 class vtkInternal;
55 vtkInternal* Internal;
56 char* CaCertificatesPath{nullptr};
57};
58
59#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)