Package org.apache.cocoon.servletservice

Examples of org.apache.cocoon.servletservice.ServletServiceContext$NamedDispatcher


    public ServletFactoryBean() {
    }

    public void init() throws Exception {
        this.servletServiceContext = new ServletServiceContext();
        this.servletServiceContext.setServletContext(this.servletContext);

        this.servletServiceContext.setMountPath(this.mountPath);

        this.servletServiceContext.setInitParams(this.initParams);
View Full Code Here


    public ServletFactoryBean() {
    }

    public void init() throws Exception {
        this.servletServiceContext = new ServletServiceContext();
        this.servletServiceContext.setServletContext(this.servletContext);

        this.servletServiceContext.setMountPath(this.mountPath);

        this.servletServiceContext.setInitParams(this.initParams);
View Full Code Here

            if (!(servletContext instanceof ServletServiceContext)) {
                this.logger.info(servletName + " isn't Servlet-Service servlet, it will be ignored.");
                continue;
            }

            ServletServiceContext servletServiceContext = (ServletServiceContext) servletContext;
            ObjectName name = null;
            String stringName = "org.apache.cocoon:group=ServletServices,name=["
                    + this.getMountPath(servletServiceContext) + "] " + servletName;
            try {
                name = new ObjectName(stringName);
View Full Code Here

     */
    @SuppressWarnings("unchecked")
    @ManagedAttribute(description = "Returns list of connections for this Servlet-Service")
    public final String[] getServletServiceConnections() {
        ServletContext servletContext = this.servlet.getServletConfig().getServletContext();
        ServletServiceContext servletServiceContext = (ServletServiceContext) servletContext;

        Map<String, String> servletServiceConnections = null;
        try {
            Field connectionsField = servletServiceContext.getClass().getDeclaredField("connectionServiceNames");
            connectionsField.setAccessible(true);
            servletServiceConnections = (Map<String, String>) connectionsField.get(unpackProxy(servletServiceContext));
        } catch (Exception e) {
            this.logger.warn("Can't access the connections field of " + servletContext + ".", e);
        }
View Full Code Here

     * @return month path
     */
    @ManagedAttribute(description = "Returns list of registered Servlet-Services with their month paths")
    public final String getServletServiceMountPaths() {
        ServletContext servletContext = this.servlet.getServletConfig().getServletContext();
        ServletServiceContext context = (ServletServiceContext) servletContext;
        return context.getMountPath();
    }
View Full Code Here

TOP

Related Classes of org.apache.cocoon.servletservice.ServletServiceContext$NamedDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.