@Test public void testGetValueForPath() { XFrameOptions xFrameOptions = new XFrameOptions(deny); assertThat(xFrameOptions.getValueForPath(url), is(expected)); }
public String getValueForPath(final String path) { if (!defaultDeny || frameablePaths.contains(path)) { return SAME_ORIGIN; } return DENY; }
XFrameOptions implements Serializable { public String getValueForPath(final String path) { if (!defaultDeny || frameablePaths.contains(path)) { return SAME_ORIGIN; } return DENY; } }
XFrameOptions implements Serializable { public String getValueForPath(final String path) { if (!defaultDeny || frameablePaths.contains(path)) { return SAME_ORIGIN; } return DENY; } @Inject  XFrameOptions(@Named("${nexus.http.denyframe.enabled:-true}") final boolean defaultDeny); }
XFrameOptions implements Serializable { public String getValueForPath(final String path) { if (!defaultDeny || frameablePaths.contains(path)) { return SAME_ORIGIN; } return DENY; } @Inject  XFrameOptions(@Named("${nexus.http.denyframe.enabled:-true}") final boolean defaultDeny); String getValueForPath(final String path); }
XFrameOptions implements Serializable { public String getValueForPath(final String path) { if (!defaultDeny || frameablePaths.contains(path)) { return SAME_ORIGIN; } return DENY; } @Inject  XFrameOptions(@Named("${nexus.http.denyframe.enabled:-true}") final boolean defaultDeny); String getValueForPath(final String path); static final String DENY; static final String SAME_ORIGIN; }