public class XServletSettings extends Object implements Serializable, com.helger.commons.lang.ICloneable<XServletSettings>
EHttpReferrerPolicy| Constructor and Description |
|---|
XServletSettings() |
XServletSettings(XServletSettings aOther) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
XServletSettings |
getClone() |
com.helger.http.EHttpReferrerPolicy |
getHttpReferrerPolicy() |
com.helger.commons.url.ISimpleURL |
getXFrameOptionsDomain() |
com.helger.servlet.response.EXFrameOptionType |
getXFrameOptionsType() |
int |
hashCode() |
boolean |
hasHttpReferrerPolicy() |
boolean |
hasXFrameOptions() |
boolean |
isMultipartEnabled() |
XServletSettings |
setHttpReferrerPolicy(com.helger.http.EHttpReferrerPolicy eHttpReferrerPolicy)
Set the Http Referrer Policy to be used.
|
XServletSettings |
setMultipartEnabled(boolean bIsMultipartEnabled) |
XServletSettings |
setXFrameOptions(com.helger.servlet.response.EXFrameOptionType eType,
com.helger.commons.url.ISimpleURL aDomain)
The X-Frame-Options HTTP response header can be used to indicate whether or
not a browser should be allowed to render a page in a <frame>,
<iframe> or <object> .
|
String |
toString() |
public XServletSettings()
public XServletSettings(@Nonnull XServletSettings aOther)
@Nullable public com.helger.http.EHttpReferrerPolicy getHttpReferrerPolicy()
null if none is set.public boolean hasHttpReferrerPolicy()
true if a referrer policy is set, false if
not.@Nonnull public XServletSettings setHttpReferrerPolicy(@Nullable com.helger.http.EHttpReferrerPolicy eHttpReferrerPolicy)
eHttpReferrerPolicy - The enumeration value to be used. May be null to
indicate: don't set@Nullable public com.helger.servlet.response.EXFrameOptionType getXFrameOptionsType()
null.@Nullable public com.helger.commons.url.ISimpleURL getXFrameOptionsDomain()
EXFrameOptionType.ALLOW_FROM. May be null.public boolean hasXFrameOptions()
true if X-Frame-Options are defined, false
if not.@Nonnull public XServletSettings setXFrameOptions(@Nullable com.helger.servlet.response.EXFrameOptionType eType, @Nullable com.helger.commons.url.ISimpleURL aDomain)
X-Frame-Options: DENY X-Frame-Options: SAMEORIGIN X-Frame-Options: ALLOW-FROM https://example.com/
eType - The X-Frame-Options type to be set. May be null.aDomain - The domain URL to be used in "ALLOW-FROM". May be null
for the other cases.public boolean isMultipartEnabled()
@Nonnull public XServletSettings setMultipartEnabled(boolean bIsMultipartEnabled)
@Nonnull @ReturnsMutableCopy public XServletSettings getClone()
getClone in interface com.helger.commons.lang.ICloneable<XServletSettings>Copyright © 2017–2019 Philip Helger. All rights reserved.