public class AddSchemeAndDomainAndServerPortUrlTransformer extends Object implements UrlTransformer
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_HTTP_PORT |
static int |
DEFAULT_HTTPS_PORT |
protected boolean |
forceHttps |
static String |
HTTP_SCHEME |
static String |
HTTPS_SCHEME |
protected int |
httpsPort |
| Constructor and Description |
|---|
AddSchemeAndDomainAndServerPortUrlTransformer() |
| Modifier and Type | Method and Description |
|---|---|
void |
setForceHttps(boolean forceHttps) |
void |
setHttpsPort(int httpsPort) |
String |
transformUrl(Context context,
CachingOptions cachingOptions,
String url) |
public static final String HTTP_SCHEME
public static final String HTTPS_SCHEME
public static final int DEFAULT_HTTP_PORT
public static final int DEFAULT_HTTPS_PORT
protected boolean forceHttps
protected int httpsPort
public AddSchemeAndDomainAndServerPortUrlTransformer()
public void setForceHttps(boolean forceHttps)
public void setHttpsPort(int httpsPort)
public String transformUrl(Context context, CachingOptions cachingOptions, String url) throws UrlTransformationException
transformUrl in interface UrlTransformerUrlTransformationExceptionCopyright © 2018 CrafterCMS. All rights reserved.