Class FlashCrossDomainServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class FlashCrossDomainServlet
    extends javax.servlet.http.HttpServlet
    Serves up the flash cross domain xml file which allows other domains to access http-binding using flash. This implementation will first try to serve <OpenfireHome>/conf/crossdomain.xml. If this file is unavailable, a crossdomain file will be generated dynamically, based on the current settings of the Openfire BOSH functionality.
    Author:
    Alexander Wenckus, Guus der Kinderen, guus.der.kinderen@gmail.com
    See Also:
    Serialized Form
    • Field Detail

      • CROSS_DOMAIN_TEXT

        public static String CROSS_DOMAIN_TEXT
      • CROSS_DOMAIN_MIDDLE_TEXT

        public static String CROSS_DOMAIN_MIDDLE_TEXT
      • CROSS_DOMAIN_END_TEXT

        public static String CROSS_DOMAIN_END_TEXT
    • Constructor Detail

      • FlashCrossDomainServlet

        public FlashCrossDomainServlet()
    • Method Detail

      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest httpServletRequest,
                             javax.servlet.http.HttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getCrossDomainContent

        public static String getCrossDomainContent()
        Returns the content for crossdomain.xml, either by generating content, or by passing the provided file in <OpenfireHome>/conf/crossdomain.xml
        Returns:
        content for the crossdomain.xml that should be served for this service.