public class ValidatedOrigin extends Origin
http
and https
.Constructor and Description |
---|
ValidatedOrigin(Origin origin)
Creates a new validated origin.
|
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Returns the host (name or IP address).
|
int |
getPort()
Returns the port number.
|
String |
getScheme()
Returns the scheme.
|
String |
getSuffix()
Returns the suffix which is made up of the host name / IP address
and port (if a non-default port is specified).
|
public ValidatedOrigin(Origin origin) throws OriginException
origin
- The origin to validate. Must not be null
.OriginException
- If the value doesn't represent a valid URI
and a supported origin.Copyright © 2010–2019 The Transaction Company. All rights reserved.