@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null) o = super.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null) o = super.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null) o = super.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null && _contextAttributes != null) o = _contextAttributes.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null && _contextAttributes != null) o = _contextAttributes.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null && _contextAttributes != null) o = _contextAttributes.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null) o = super.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null && _contextAttributes != null) o = _contextAttributes.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null && _contextAttributes != null) o = _contextAttributes.getAttribute(name); return o; }
@Override public synchronized Object getAttribute(String name) { Object o = ContextHandler.this.getAttribute(name); if (o == null) o = super.getAttribute(name); return o; }
/** * Compatibility methods between karaf launcher and monolithic launcher. * * @todo Remove after transition to karaf launcher. */ public static ManagementContext getManagementContext(ContextHandler jettyServerHandler) { ManagementContext managementContext = Compat.getInstance().getManagementContext(); if (managementContext == null && jettyServerHandler != null) { managementContext = (ManagementContext) jettyServerHandler.getAttribute(BrooklynServiceAttributes.BROOKLYN_MANAGEMENT_CONTEXT); } return managementContext; }
public Object mangle( final Server server ) { ContextHandler ctx = getContext( server ); if ( ctx != null && ctx.getServletContext() != null ) { // try with servlet context is available, it falls back to attributes anyway return ctx.getServletContext().getAttribute( attributeKey ); } else if ( ctx != null ) { // try plain jetty attributes return ctx.getAttribute( attributeKey ); } else { return null; } } }
public static ManagementContext getManagementContext(ContextHandler jettyServerHandler) { ManagementContext managementContext = Compat.getInstance().getManagementContext(); if (managementContext == null && jettyServerHandler != null) { managementContext = (ManagementContext) jettyServerHandler.getAttribute(BrooklynServiceAttributes.BROOKLYN_MANAGEMENT_CONTEXT); } return managementContext; } }