|
PLCnext API Documentation 25.9.0.13
|
This class implements represents a Uniform Resource Locator. More...
#include <Url.hpp>
Public Member Functions | |
| Url (void) | |
| The default constructor. | |
| Url (const String &ipcAppName) | |
| Constructs a Url instance. More... | |
| Url (const String &host, int port, bool encrypt) | |
| Constructs a Url instance. More... | |
| Url (const String &host, int port, const char *scheme) | |
| Constructs a Url instance. More... | |
| Url (const Url &arg) | |
| The default copy constructor. More... | |
| Url (Url &&arg) noexcept | |
| The default move constructor. More... | |
| Url & | operator= (const Url &arg) |
| The default copy-assignment operator. More... | |
| Url & | operator= (Url &&arg) noexcept |
| The default move-assignment operator. More... | |
| ~Url (void) | |
| The default destructor. | |
| bool | IsEmpty (void) const |
| Determines if this instance is empty. More... | |
| bool | IsEncrypted (void) const |
| Determines if this instance specifies an encrypted protocol like <cTLS. More... | |
| bool | HasScheme (void) const |
| Determines if this instance has a specified scheme. More... | |
| bool | HasIpcScheme (void) const |
Determines if this instance has a IPC scheme. More... | |
| bool | HasTcpScheme (void) const |
Determines if this instance has a TCP scheme. More... | |
| bool | HasTlsScheme (void) const |
Determines if this instance has a TLS scheme. More... | |
| const String & | GetScheme (void) const |
| Gets the scheme string of this instance. More... | |
| const String & | GetHost (void) const |
| Gets the host string of this instance. More... | |
| const String & | GetPath (void) const |
| Gets the path string of this instance. More... | |
| int | GetPort (void) const |
| Gets the port of this instance. More... | |
| void | Clear (void) |
| Empties this instance. | |
| String | ToString (void) const |
| Returns the entire Url string of this instance. More... | |
| Impl & | GetImpl (void) |
| For internal use only. More... | |
| const Impl & | GetImpl (void) const |
Static Public Member Functions | |
| static Url | GetEmpty (void) |
| Returns an empty Url. More... | |
| static Url | Parse (const String &input) |
| Parses an Url string. More... | |
| static bool | TryParse (const String &input, Url &result) |
| Parses an Url string. More... | |
This class implements represents a Uniform Resource Locator.
This class is used to identify and address a ressource, e.g.
Furthermore the communication procol might be specified.
|
explicit |
Constructs a Url instance.
| ipcAppName | The name of the IPC process. |
| Arp::Base::Commons::Net::Url::Url | ( | const String & | host, |
| int | port, | ||
| bool | encrypt | ||
| ) |
Constructs a Url instance.
| host | The host to specify as IP address. |
| port | The TCP port. |
| encrypt | Specifies if TCP or TLS is used. |
| Arp::Base::Commons::Net::Url::Url | ( | const String & | host, |
| int | port, | ||
| const char * | scheme | ||
| ) |
Constructs a Url instance.
| host | The host to specify as IP address. |
| port | The TCP port. |
| scheme | Specifies the scheme explicitly. |
|
default |
The default copy constructor.
| arg | The argument to copy. |
|
defaultnoexcept |
The default move constructor.
| arg | The argument to move. |
|
static |
| const String & Arp::Base::Commons::Net::Url::GetHost | ( | void | ) | const |
Gets the host string of this instance.
| const Url::Impl & Arp::Base::Commons::Net::Url::GetImpl | ( | void | ) |
For internal use only.
| const String & Arp::Base::Commons::Net::Url::GetPath | ( | void | ) | const |
Gets the path string of this instance.
| int Arp::Base::Commons::Net::Url::GetPort | ( | void | ) | const |
Gets the port of this instance.
If the port was not specified, zero is returned.
| const String & Arp::Base::Commons::Net::Url::GetScheme | ( | void | ) | const |
Gets the scheme string of this instance.
| bool Arp::Base::Commons::Net::Url::HasIpcScheme | ( | void | ) | const |
Determines if this instance has a IPC scheme.
true if this instance has a IPC scheme, otherwise false.The IPC scheme specifies local inter-process communication using Unix-Domain sockets.
| bool Arp::Base::Commons::Net::Url::HasScheme | ( | void | ) | const |
Determines if this instance has a specified scheme.
true if this instance has a specified scheme, otherwise false.| bool Arp::Base::Commons::Net::Url::HasTcpScheme | ( | void | ) | const |
Determines if this instance has a TCP scheme.
true if this instance has a TCP scheme, otherwise false.The TCP scheme specifies remote communication TCP sockets.
| bool Arp::Base::Commons::Net::Url::HasTlsScheme | ( | void | ) | const |
Determines if this instance has a TLS scheme.
true if this instance has a TLS scheme, otherwise false.The TLS scheme specifies encrypted remote communication TCP sockets with TLS.
| bool Arp::Base::Commons::Net::Url::IsEmpty | ( | void | ) | const |
Determines if this instance is empty.
true if this instance is empty, otherwise false.| bool Arp::Base::Commons::Net::Url::IsEncrypted | ( | void | ) | const |
Determines if this instance specifies an encrypted protocol like <cTLS.
true if this instance specifies an encrypted protocol, otherwise false.The default copy-assignment operator.
| arg | The argument to copy. |
The default move-assignment operator.
| arg | The argument to move. |
| String Arp::Base::Commons::Net::Url::ToString | ( | void | ) | const |