com.day.cq.wcm.siteimporter
Class ImporterContext

java.lang.Object
  extended by com.day.cq.wcm.siteimporter.ImporterContext
All Implemented Interfaces:
ProgressTracker

public class ImporterContext
extends Object
implements ProgressTracker


Method Summary
 void addPath(String path)
           
static ImporterContext createContext(SlingHttpServletRequest request, SlingHttpServletResponse response, BundleContext bundleContext)
           
static ImporterContext createContext(SlingHttpServletRequest request, SlingHttpServletResponse response, BundleContext bundleContext, ResourcesBoard board)
           
 void dispose()
           
 void doIndent()
           
 void error(String message)
           
 void error(String message, Exception e)
           
 void flushBuffer()
           
 ResourcesBoard getBoard()
           
 String getContextPath()
           
 String getDefaultLanguage()
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 URL getOriginal()
           
 List<String> getPaths()
           
 String getProjectName()
           
 ResourceResolver getResolver()
           
 String getResourceSuperType()
           
<T> T
getService(Class<T> type)
           
 String getSitemap()
           
 RequestParameter getThumbnail()
           
 String getTitle()
           
 PrintWriter getWriter()
           
 boolean isOverwrite()
           
 void output(String message)
           
 void output(String message, String css)
           
 void repairIndent()
           
 void setDefaultLanguage(String defaultLanguage)
           
 void undoIndent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createContext

public static ImporterContext createContext(SlingHttpServletRequest request,
                                            SlingHttpServletResponse response,
                                            BundleContext bundleContext)
                                     throws MalformedURLException
Throws:
MalformedURLException

createContext

public static ImporterContext createContext(SlingHttpServletRequest request,
                                            SlingHttpServletResponse response,
                                            BundleContext bundleContext,
                                            ResourcesBoard board)
                                     throws MalformedURLException
Throws:
MalformedURLException

getProjectName

public String getProjectName()

getTitle

public String getTitle()

getOriginal

public URL getOriginal()

getSitemap

public String getSitemap()

getResourceSuperType

public String getResourceSuperType()

isOverwrite

public boolean isOverwrite()

getContextPath

public String getContextPath()

getResolver

public ResourceResolver getResolver()

getBoard

public ResourcesBoard getBoard()

getWriter

public PrintWriter getWriter()

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

getPaths

public List<String> getPaths()

addPath

public void addPath(String path)

getThumbnail

public RequestParameter getThumbnail()

getService

public <T> T getService(Class<T> type)

dispose

public void dispose()

output

public void output(String message)
Specified by:
output in interface ProgressTracker

output

public void output(String message,
                   String css)
Specified by:
output in interface ProgressTracker

error

public void error(String message)
Specified by:
error in interface ProgressTracker

error

public void error(String message,
                  Exception e)
Specified by:
error in interface ProgressTracker

doIndent

public void doIndent()
Specified by:
doIndent in interface ProgressTracker

undoIndent

public void undoIndent()
Specified by:
undoIndent in interface ProgressTracker

repairIndent

public void repairIndent()
Specified by:
repairIndent in interface ProgressTracker

flushBuffer

public void flushBuffer()
Specified by:
flushBuffer in interface ProgressTracker

setDefaultLanguage

public void setDefaultLanguage(String defaultLanguage)

getDefaultLanguage

public String getDefaultLanguage()


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.