Package org.serviceconnector.conf

Examples of org.serviceconnector.conf.WebConfiguration


   *            the request
   * @throws Exception
   *             the exception
   */
  private void loadWebConfiguration(XMLStreamWriter writer, IWebRequest request) throws Exception {
    WebConfiguration webConfiguration = WebContext.getWebConfiguration();
    writer.writeStartElement("web-config");
    String scDownloadService = webConfiguration.getScDownloadService();
    writer.writeStartElement("scDownloadService");
    if (scDownloadService != null) {
      writer.writeCData(scDownloadService);
    }
    writer.writeEndElement(); // end of scDownloadService
    String scUploadService = webConfiguration.getScUploadService();
    writer.writeStartElement("scUploadService");
    if (scUploadService != null) {
      writer.writeCData(scUploadService);
    }
    writer.writeEndElement(); // end of scUploadService
    Boolean scTerminateAllowed = webConfiguration.isScTerminateAllowed();
    writer.writeStartElement("scTerminateAllowed");
    writer.writeCharacters(scTerminateAllowed.toString());
    writer.writeEndElement(); // end of scTerminateAllowed
    writer.writeEndElement(); // end of web-config
  }
View Full Code Here


   */
  private void loadFileServices(XMLStreamWriter writer, IWebRequest request) throws Exception {
    ServiceRegistry serviceRegistry = AppContext.getServiceRegistry();
    writer.writeStartElement("services");
    Service[] services = serviceRegistry.getServices();
    WebConfiguration webConfiguration = WebContext.getWebConfiguration();
    String scDownloadService = webConfiguration.getScDownloadService();
    String scUploadService = webConfiguration.getScUploadService();
    for (Service service : services) {
      if (service instanceof FileService || service instanceof CascadedFileService) {
        // check if upload or download is active for this service
        writer.writeStartElement("service");
        String fileServiceName = service.getName();
View Full Code Here

    writer.writeEndElement(); // close meta tag
    // write sc version
    writer.writeStartElement("meta");
    writer.writeAttribute("scversion", SCVersion.CURRENT.toString());
    writer.writeEndElement(); // close meta tag
    WebConfiguration webConfiguration = WebContext.getWebConfiguration();
    // write web color schema
    writer.writeStartElement("meta");
    writer.writeAttribute("colorscheme", webConfiguration.getColorScheme());
    writer.writeEndElement(); // close meta tag
    // write sc header prefix
    writer.writeStartElement("meta");
    writer.writeAttribute("headerprefix", webConfiguration.getPageHeaderPrefix());
    writer.writeEndElement(); // close meta tag
    // write sc status
    writer.writeStartElement("meta");
    writer.writeAttribute("scstatus", "success");
    writer.writeEndElement(); // close meta tag
View Full Code Here

    writer.writeEndElement(); // close meta tag
    // write sc version
    writer.writeStartElement("meta");
    writer.writeAttribute("scversion", SCVersion.CURRENT.toString());
    writer.writeEndElement(); // close meta tag
    WebConfiguration webConfiguration = WebContext.getWebConfiguration();
    // write web color schema
    writer.writeStartElement("meta");
    writer.writeAttribute("colorscheme", webConfiguration.getColorScheme());
    writer.writeEndElement(); // close meta tag
    // write sc header prefix
    writer.writeStartElement("meta");
    writer.writeAttribute("headerprefix", webConfiguration.getPageHeaderPrefix());
    writer.writeEndElement(); // close meta tag
    // write sc status
    writer.writeStartElement("meta");
    writer.writeAttribute("scstatus", "success");
    writer.writeEndElement(); // close meta tag
View Full Code Here

TOP

Related Classes of org.serviceconnector.conf.WebConfiguration

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.