Package org.jivesoftware.openfire.http
Class FlashCrossDomainServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- org.jivesoftware.openfire.http.FlashCrossDomainServlet
-
- All Implemented Interfaces:
Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
public class FlashCrossDomainServlet extends javax.servlet.http.HttpServletServes 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 Summary
Fields Modifier and Type Field Description static StringCROSS_DOMAIN_END_TEXTstatic StringCROSS_DOMAIN_MIDDLE_TEXTstatic StringCROSS_DOMAIN_TEXT
-
Constructor Summary
Constructors Constructor Description FlashCrossDomainServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response)static StringgetCrossDomainContent()Returns the content forcrossdomain.xml, either by generating content, or by passing the provided file in<OpenfireHome>/conf/crossdomain.xml-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException- Overrides:
doGetin classjavax.servlet.http.HttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
getCrossDomainContent
public static String getCrossDomainContent()
Returns the content forcrossdomain.xml, either by generating content, or by passing the provided file in<OpenfireHome>/conf/crossdomain.xml- Returns:
- content for the
crossdomain.xmlthat should be served for this service.
-
-