@Override public String toString() { return getDisplayName(); } }
@Override public String toString() { return getDisplayName(); } }
@Override public String toString() { return getDisplayName(); }
@Override public String toString() { return getDisplayName(); } }
@Override public String toString() { return getDisplayName(); } }
@Override public String toString() { return getDisplayName(); } }
@Override public String toString() { return getDisplayName(); } }
@Override public String toString() { return getDisplayName(); }
/** * Create an <code>ObjectName</code> for this * <code>Context</code> object. * * @param domain Domain in which this name is to be created * @param context The Context to be named * * @exception MalformedObjectNameException if a name cannot be created * @deprecated Unused. Will be removed in Tomcat 8.0.x */ @Deprecated static ObjectName createObjectName(String domain, Context context) throws MalformedObjectNameException { ObjectName name = null; Host host = (Host)context.getParent(); ContextName cn = new ContextName(context.getName()); name = new ObjectName(domain + ":j2eeType=WebModule,name=//" + host.getName()+ cn.getDisplayName() + ",J2EEApplication=none,J2EEServer=none"); return (name); }
/** * Create an <code>ObjectName</code> for this * <code>Context</code> object. * * @param domain Domain in which this name is to be created * @param context The Context to be named * * @exception MalformedObjectNameException if a name cannot be created * @deprecated Unused. Will be removed in Tomcat 8.0.x */ @Deprecated static ObjectName createObjectName(String domain, Context context) throws MalformedObjectNameException { ObjectName name = null; Host host = (Host)context.getParent(); ContextName cn = new ContextName(context.getName()); name = new ObjectName(domain + ":j2eeType=WebModule,name=//" + host.getName()+ cn.getDisplayName() + ",J2EEApplication=none,J2EEServer=none"); return (name); }
/** * Create an <code>ObjectName</code> for this * <code>Context</code> object. * * @param domain Domain in which this name is to be created * @param context The Context to be named * * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, Context context) throws MalformedObjectNameException { ObjectName name = null; Host host = (Host)context.getParent(); ContextName cn = new ContextName(context.getName()); name = new ObjectName(domain + ":j2eeType=WebModule,name=//" + host.getName()+ cn.getDisplayName() + ",J2EEApplication=none,J2EEServer=none"); return (name); }
/** * Create an <code>ObjectName</code> for this * <code>Context</code> object. * * @param domain Domain in which this name is to be created * @param context The Context to be named * * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, Context context) throws MalformedObjectNameException { ObjectName name = null; Host host = (Host)context.getParent(); ContextName cn = new ContextName(context.getName()); name = new ObjectName(domain + ":j2eeType=WebModule,name=//" + host.getName()+ cn.getDisplayName() + ",J2EEApplication=none,J2EEServer=none"); return (name); }
/** * Create an <code>ObjectName</code> for this * <code>Context</code> object. * * @param domain Domain in which this name is to be created * @param context The Context to be named * * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, Context context) throws MalformedObjectNameException { ObjectName name = null; Host host = (Host)context.getParent(); ContextName cn = new ContextName(context.getName()); name = new ObjectName(domain + ":j2eeType=WebModule,name=//" + host.getName()+ cn.getDisplayName() + ",J2EEApplication=none,J2EEServer=none"); return (name); }
/** * Create an <code>ObjectName</code> for this * <code>Server</code> object. * * @param domain Domain in which this name is to be created * @param resources The NamingResources to be named * * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, NamingResources resources) throws MalformedObjectNameException { ObjectName name = null; Object container = resources.getContainer(); if (container instanceof Server) { name = new ObjectName(domain + ":type=NamingResources" + ",resourcetype=Global"); } else if (container instanceof Context) { Context context = ((Context)container); ContextName cn = new ContextName(context.getName()); Container host = context.getParent(); name = new ObjectName(domain + ":type=NamingResources" + ",resourcetype=Context,context=" + cn.getDisplayName() + ",host=" + host.getName()); } return (name); }
/** * Create an <code>ObjectName</code> for this * <code>Loader</code> object. * * @param domain Domain in which this name is to be created * @param loader The Loader to be named * @return a new object name * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, Loader loader) throws MalformedObjectNameException { ObjectName name = null; Context context = loader.getContext(); ContextName cn = new ContextName(context.getName(), false); Container host = context.getParent(); name = new ObjectName(domain + ":type=Loader,host=" + host.getName() + ",context=" + cn.getDisplayName()); return name; }
/** * Create an <code>ObjectName</code> for this * <code>Loader</code> object. * * @param domain Domain in which this name is to be created * @param loader The Loader to be named * * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, Loader loader) throws MalformedObjectNameException { ObjectName name = null; Context context = loader.getContext(); ContextName cn = new ContextName(context.getName()); Container host = context.getParent(); name = new ObjectName(domain + ":type=Loader,host=" + host.getName() + ",context=" + cn.getDisplayName()); return name; }
/** * Create an <code>ObjectName</code> for this * <code>Loader</code> object. * * @param domain Domain in which this name is to be created * @param loader The Loader to be named * @return a new object name * @exception MalformedObjectNameException if a name cannot be created */ static ObjectName createObjectName(String domain, Loader loader) throws MalformedObjectNameException { ObjectName name = null; Context context = loader.getContext(); ContextName cn = new ContextName(context.getName(), false); Container host = context.getParent(); name = new ObjectName(domain + ":type=Loader,host=" + host.getName() + ",context=" + cn.getDisplayName()); return name; }
protected Session getSessionForNameAndId(ContextName cn, String id, StringManager smClient) throws IOException { if ((cn == null) || !(cn.getPath().startsWith("/") || cn.getPath().equals(""))) { String path = null; if (cn != null) { path = cn.getPath(); } throw new IllegalArgumentException(smClient.getString( "managerServlet.invalidPath", RequestUtil.filter(path))); } Context ctxt = (Context) host.findChild(cn.getName()); if (null == ctxt) { throw new IllegalArgumentException(smClient.getString( "managerServlet.noContext", RequestUtil.filter(cn.getDisplayName()))); } Session session = ctxt.getManager().findSession(id); return session; }
protected Session getSessionForNameAndId(ContextName cn, String id, StringManager smClient) throws IOException { if ((cn == null) || !(cn.getPath().startsWith("/") || cn.getPath().equals(""))) { String path = null; if (cn != null) { path = cn.getPath(); } throw new IllegalArgumentException(smClient.getString( "managerServlet.invalidPath", RequestUtil.filter(path))); } Context ctxt = (Context) host.findChild(cn.getName()); if (null == ctxt) { throw new IllegalArgumentException(smClient.getString( "managerServlet.noContext", RequestUtil.filter(cn.getDisplayName()))); } Session session = ctxt.getManager().findSession(id); return session; }
protected Session getSessionForNameAndId(ContextName cn, String id, StringManager smClient) throws IOException { if ((cn == null) || !(cn.getPath().startsWith("/") || cn.getPath().equals(""))) { String path = null; if (cn != null) { path = cn.getPath(); } throw new IllegalArgumentException(smClient.getString( "managerServlet.invalidPath", RequestUtil.filter(path))); } Context ctxt = (Context) host.findChild(cn.getName()); if (null == ctxt) { throw new IllegalArgumentException(smClient.getString( "managerServlet.noContext", RequestUtil.filter(cn.getDisplayName()))); } Session session = ctxt.getManager().findSession(id); return session; }