public class DefaultNutsSession extends Object implements Cloneable, NutsSession
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
outputFormatOptions |
protected NutsWorkspace |
ws |
| Constructor and Description |
|---|
DefaultNutsSession(NutsWorkspace ws) |
DefaultNutsSession(NutsWorkspace ws,
NutsWorkspaceOptions options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigureLastprotected NutsWorkspace ws
public DefaultNutsSession(NutsWorkspace ws)
public DefaultNutsSession(NutsWorkspace ws, NutsWorkspaceOptions options)
public Object configure(boolean skipUnsupported, String... args)
NutsCommandLineConfigurable.configure(boolean, java.lang.String...)
to help return a more specific return type;configure in interface NutsCommandLineConfigurableargs - argument to configure withthis instancepublic final boolean configure(boolean skipUnsupported,
NutsCommandLine commandLine)
configure in interface NutsCommandLineConfigurableskipUnsupported - when true, all unsupported options are skipped
silentlycommandLine - arguments to configure withthis instancepublic boolean configureFirst(NutsCommandLine cmdLine)
configureFirst in interface NutsCommandLineConfigurablepublic NutsContentType getPreferredOutputFormat()
public boolean isTrace()
isTrace in interface NutsSessionpublic NutsSession setTrace(Boolean trace)
setTrace in interface NutsSessionpublic boolean isPlainTrace()
isPlainTrace in interface NutsSessionpublic boolean isIterableTrace()
isIterableTrace in interface NutsSessionpublic boolean isStructuredTrace()
isStructuredTrace in interface NutsSessionpublic boolean isIterableOut()
isIterableOut in interface NutsSessionpublic NutsSession setIterableOut(boolean iterableOut)
setIterableOut in interface NutsSessionpublic boolean isStructuredOut()
isStructuredOut in interface NutsSessionpublic NutsArrayElementBuilder getElemOut()
getElemOut in interface NutsSessionpublic NutsSession setElemOut(NutsArrayElementBuilder eout)
setElemOut in interface NutsSessionpublic boolean isPlainOut()
isPlainOut in interface NutsSessionpublic boolean isBot()
isBot in interface NutsSessionpublic Boolean getBot()
getBot in interface NutsSessionpublic NutsSession setBot(Boolean bot)
setBot in interface NutsSessionpublic boolean isYes()
isYes in interface NutsSessionpublic boolean isNo()
isNo in interface NutsSessionpublic boolean isAsk()
isAsk in interface NutsSessionpublic NutsContentType getOutputFormat(NutsContentType defaultValue)
getOutputFormat in interface NutsSessionpublic NutsContentType getOutputFormat()
getOutputFormat in interface NutsSessionpublic NutsSession setOutputFormat(NutsContentType outputFormat)
setOutputFormat in interface NutsSessionpublic NutsSession json()
json in interface NutsSessionpublic NutsSession plain()
plain in interface NutsSessionpublic NutsSession props()
props in interface NutsSessionpublic NutsSession tree()
tree in interface NutsSessionpublic NutsSession table()
table in interface NutsSessionpublic NutsSession xml()
xml in interface NutsSessionpublic NutsSession copy()
copy in interface NutsSessionpublic NutsSession copyFrom(NutsSession other)
copyFrom in interface NutsSessionpublic NutsSession copyFrom(NutsWorkspaceOptions options)
copyFrom in interface NutsSessionpublic NutsId getAppId()
getAppId in interface NutsSessionpublic NutsSession setAppId(NutsId appId)
setAppId in interface NutsSessionpublic NutsFetchStrategy getFetchStrategy()
getFetchStrategy in interface NutsSessionpublic NutsSession setFetchStrategy(NutsFetchStrategy mode)
setFetchStrategy in interface NutsSessionpublic NutsSession addListener(NutsListener listener)
addListener in interface NutsSessionpublic NutsSession removeListener(NutsListener listener)
removeListener in interface NutsSessionpublic <T extends NutsListener> T[] getListeners(Class<T> type)
getListeners in interface NutsSessionpublic NutsListener[] getListeners()
getListeners in interface NutsSessionpublic NutsSession setProperty(String key, Object value)
setProperty in interface NutsSessionpublic Map<String,Object> getProperties()
getProperties in interface NutsSessionpublic NutsSession setProperties(Map<String,Object> properties)
setProperties in interface NutsSessionpublic Object getProperty(String key)
getProperty in interface NutsSessionpublic NutsConfirmationMode getConfirm()
getConfirm in interface NutsSessionpublic NutsSession setConfirm(NutsConfirmationMode confirm)
setConfirm in interface NutsSessionpublic NutsSession addOutputFormatOptions(String... options)
addOutputFormatOptions in interface NutsSessionpublic String[] getOutputFormatOptions()
getOutputFormatOptions in interface NutsSessionpublic NutsSession setOutputFormatOptions(String... options)
setOutputFormatOptions in interface NutsSessionpublic NutsPrintStream out()
out in interface NutsSessionpublic InputStream in()
in in interface NutsSessionpublic NutsPrintStream err()
err in interface NutsSessionpublic NutsIterableFormat getIterableOutput()
getIterableOutput in interface NutsSessionpublic NutsSessionTerminal getTerminal()
getTerminal in interface NutsSessionpublic NutsSession setTerminal(NutsSessionTerminal terminal)
setTerminal in interface NutsSessionpublic NutsWorkspace getWorkspace()
getWorkspace in interface NutsSessionpublic boolean isTransitive()
isTransitive in interface NutsSessionpublic NutsSession setTransitive(Boolean value)
setTransitive in interface NutsSessionpublic boolean isCached()
isCached in interface NutsSessionpublic NutsSession setCached(Boolean value)
setCached in interface NutsSessionpublic boolean isIndexed()
isIndexed in interface NutsSessionpublic NutsSession setIndexed(Boolean value)
setIndexed in interface NutsSessionpublic Instant getExpireTime()
getExpireTime in interface NutsSessionpublic NutsSession setExpireTime(Instant expireTime)
setExpireTime in interface NutsSessionpublic String getProgressOptions()
getProgressOptions in interface NutsSessionpublic NutsSession setProgressOptions(String progressOptions)
setProgressOptions in interface NutsSessionpublic boolean isGui()
isGui in interface NutsSessionpublic NutsSession setGui(Boolean gui)
setGui in interface NutsSessionpublic String getErrLinePrefix()
getErrLinePrefix in interface NutsSessionpublic NutsSession setErrLinePrefix(String errLinePrefix)
setErrLinePrefix in interface NutsSessionpublic String getOutLinePrefix()
getOutLinePrefix in interface NutsSessionpublic NutsSession setOutLinePrefix(String outLinePrefix)
setOutLinePrefix in interface NutsSessionpublic boolean isDry()
isDry in interface NutsSessionpublic NutsSession setDry(Boolean dry)
setDry in interface NutsSessionpublic Level getLogTermLevel()
getLogTermLevel in interface NutsSessionpublic NutsSession setLogLevel(Level level)
setLogLevel in interface NutsSessionpublic Filter getLogTermFilter()
getLogTermFilter in interface NutsSessionpublic NutsSession setLogFilter(Filter filter)
setLogFilter in interface NutsSessionpublic NutsSession configure(NutsWorkspaceOptions options)
configure in interface NutsSessionpublic Level getLogFileLevel()
getLogFileLevel in interface NutsSessionpublic NutsSession setLogFileLevel(Level logFileLevel)
setLogFileLevel in interface NutsSessionpublic Filter getLogFileFilter()
getLogFileFilter in interface NutsSessionpublic NutsSession setLogFileFilter(Filter logFileFilter)
setLogFileFilter in interface NutsSessionpublic NutsArrayElementBuilder eout()
eout in interface NutsSessionpublic NutsSession flush()
flush in interface NutsSessionpublic NutsExecutionType getExecutionType()
getExecutionType in interface NutsSessionpublic NutsSession setExecutionType(NutsExecutionType executionType)
setExecutionType in interface NutsSessionpublic boolean isDebug()
isDebug in interface NutsSessionpublic Boolean getDebug()
getDebug in interface NutsSessionpublic NutsSession setDebug(Boolean debug)
setDebug in interface NutsSessionpublic String getLocale()
getLocale in interface NutsSessionpublic NutsSession setLocale(String locale)
setLocale in interface NutsSessionpublic NutsRunAs getRunAs()
getRunAs in interface NutsSessionpublic NutsSession setRunAs(NutsRunAs runAs)
setRunAs in interface NutsSessionCopyright © 2021 vpc open source initiative. All rights reserved.