Oxygen XML Editor, Version ${standalone-version-number}

ro.sync.exml.plugin.openredirect
Class OpenRedirectInformation

java.lang.Object
  extended by ro.sync.exml.plugin.openredirect.OpenRedirectInformation
All Implemented Interfaces:
ro.sync.exml.editor.ContentTypes

public class OpenRedirectInformation
extends Object
implements ro.sync.exml.editor.ContentTypes

Information about redirecting an URL


Field Summary
 
Fields inherited from interface ro.sync.exml.editor.ContentTypes
ANY_CONTENT_TYPE, BATCH_CONTENT_TYPE, C_CONTENT_TYPE, CPLUSPLUS_CONTENT_TYPE, CSS_CONTENT_TYPE, DITAMAP_CONTENT_TYPE, DTD_CONTENT_TYPE, HTML_CONTENT_TYPE, IMAGE_CONTENT_TYPE, JAVA_CONTENT_TYPE, JAVASCRIPT_CONTENT_TYPE, NRL_CONTENT_TYPE, NVDL_CONTENT_TYPE, PERL_CONTENT_TYPE, PHP_CONTENT_TYPE, PLAIN_TEXT_CONTENT_TYPE, PROPERTIES_CONTENT_TYPE, PYTHON_CONTENT_TYPE, RNC_CONTENT_TYPE, RNG_CONTENT_TYPE, SCHEMATRON_CONTENT_TYPE, SHELL_CONTENT_TYPE, SQL_CONTENT_TYPE, SVG_CONTENT_TYPE, WSDL_CONTENT_TYPE, XML_CONTENT_TYPE, XPROC_CONTENT_TYPE, XQUERY_CONTENT_TYPE, XSD_CONTENT_TYPE, XSL_CONTENT_TYPE, ZIP_CONTENT_TYPE
 
Constructor Summary
OpenRedirectInformation(URL url, String contentType)
          Constructor.
 
Method Summary
 String getContentType()
           
 URL getUrl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenRedirectInformation

public OpenRedirectInformation(URL url,
                               String contentType)
Constructor.

Parameters:
url - The URL to open
contentType - The content type to open as. Can be null for auto open. The content type can either be null (and Oxygen will do the default detection) or one of the constant values defined in this class like:
  • application/zip
  • - To open in the Archive Browser
  • application/ditamap
  • - To open in the DITA Maps Manager
  • application/image
  • - To open in the Image Previewer
  • text/xml
  • - To open in the XML editor
  • text/css
  • - To open in the CSS editor ......................
Method Detail

getContentType

public String getContentType()
Returns:
Returns the contentType.

getUrl

public URL getUrl()
Returns:
Returns the url.

Oxygen XML Editor, Version ${standalone-version-number}

© Copyright Syncro Soft SRL 2002 - 2010.