/** * Stops the Grizzly service. */ @Override public void stop() throws IOException { grizzlyListener.stop(); }
/** * Load {@link AddOn} with the specific service name and classname. */ private AddOn loadAddOn(String addOnClassName, Class[] argTypes, Object... args) { return Utils.newInstance(null, AddOn.class, name, addOnClassName, argTypes, args); }
/** * Gets the Grizzly {@link HttpHandler}, associated with the context. * * @return the Grizzly {@link HttpHandler}, associated with the context. */ public HttpHandler getHttpHandler() { return holder.getHttpHandler(); }
private static String getJSSECipher(final String cipher) { final CipherInfo ci = CipherInfo.getCipherInfo(cipher); return ((ci != null) ? ci.getCipherName() : null); } // ---------------------------------------------------------- Nested Classes
/** * Create <tt>ContextRootInfo</tt> using prepared {@link HttpHandler} and * application container parameters. * * @param handler Grizzly {@link HttpHandler}, associated with the context. * @param container application container, associated with the context. */ public ContextRootInfo(final HttpHandler handler, final Object container) { holder = new SimpleHolder(handler, container); }
@SuppressWarnings({"unchecked"}) private static boolean configureElement(ServiceLocator habitat, NetworkListener networkListener, ConfigBeanProxy configuration, Object instance) { if (instance instanceof ConfigAwareElement) { ((ConfigAwareElement) instance).configure(habitat, networkListener, configuration); return true; } return false; }
/** * Gets the application container, associated with the context. * * @return the application container, associated with the context. */ public Object getContainer() { return holder.getContainer(); }
@Override public SSLContext createSSLContext(final boolean throwException) { return configureSSL(); } }
private static boolean isAjpEnabled(final GrizzlyListener grizzlyListener) { return (grizzlyListener instanceof GenericGrizzlyListener) && ((GenericGrizzlyListener) grizzlyListener).isAjpEnabled(); } }
@Override public void destroy() { grizzlyListener.destroy(); }
private static String getJSSECipher(final String cipher) { final CipherInfo ci = CipherInfo.getCipherInfo(cipher); return ((ci != null) ? ci.getCipherName() : null); } // ---------------------------------------------------------- Nested Classes
/** * Load {@link AddOn} with the specific service name and classname. */ private AddOn loadAddOn(ServiceLocator habitat, String name, String addOnClassName) { return Utils.newInstance(habitat, AddOn.class, name, addOnClassName); }
/** * Gets the Grizzly {@link HttpHandler}, associated with the context. * * @return the Grizzly {@link HttpHandler}, associated with the context. */ public HttpHandler getHttpHandler() { return holder.getHttpHandler(); }
/** * Create <tt>ContextRootInfo</tt> using prepared {@link HttpHandler} and * application container parameters. * * @param handler Grizzly {@link HttpHandler}, associated with the context. * @param container application container, associated with the context. */ public ContextRootInfo(final HttpHandler handler, final Object container) { holder = new SimpleHolder(handler, container); }
@SuppressWarnings({"unchecked"}) private static boolean configureElement(ServiceLocator habitat, NetworkListener networkListener, ConfigBeanProxy configuration, Object instance) { if (instance instanceof ConfigAwareElement) { ((ConfigAwareElement) instance).configure(habitat, networkListener, configuration); return true; } return false; }
/** * Gets the application container, associated with the context. * * @return the application container, associated with the context. */ public Object getContainer() { return holder.getContainer(); }
private Filter loadFilter(ServiceLocator habitat, String name, String filterClassName, Class<?>[] ctorArgTypes, Object[] ctorArgs) { return Utils.newInstance(habitat, Filter.class, name, filterClassName, ctorArgTypes, ctorArgs); }
/** * Load {@link AddOn} with the specific service name and classname. */ private AddOn loadAddOn(String addOnClassName, Class[] argTypes, Object... args) { return Utils.newInstance(null, AddOn.class, name, addOnClassName, argTypes, args); }
/** * Load {@link AddOn} with the specific service name and classname. */ private AddOn loadAddOn(ServiceLocator habitat, String name, String addOnClassName) { return Utils.newInstance(habitat, AddOn.class, name, addOnClassName); }
/** * Load {@link Filter} with the specific service name and classname. */ private Filter loadFilter(ServiceLocator habitat, String name, String filterClassName) { return Utils.newInstance(habitat, Filter.class, name, filterClassName); }