パッケージ jcifs.context
クラス SingletonContext
- java.lang.Object
-
- java.lang.Thread
-
- jcifs.context.AbstractCIFSContext
-
- jcifs.context.BaseContext
-
- jcifs.context.SingletonContext
-
- すべての実装されたインタフェース:
Runnable,CIFSContext
public class SingletonContext extends BaseContext implements CIFSContext
Global singleton context- 作成者:
- mbechler
-
-
ネストされたクラスの概要
-
クラスから継承されたネストされたクラス/インタフェース java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
フィールドの概要
-
クラスから継承されたフィールド java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
メソッドの概要
すべてのメソッド staticメソッド concreteメソッド 修飾子とタイプ メソッド 説明 static SingletonContextgetInstance()Get singleton context The singleton context will use system properties for configuration as well as values specified in a file specified through this jcifs.properties system property.static voidinit(Properties props)Initialize singleton context using custom properties This method can only be called once.static voidregisterSmbURLHandler()This static method registers the SMB URL protocol handler which is required to use SMB URLs with the java.net.URL class.-
クラスから継承されたメソッド jcifs.context.BaseContext
close, get, getBufferCache, getConfig, getDefaultCredentials, getDfs, getNameServiceClient, getPipe, getSIDResolver, getTransportPool, getUrlHandler
-
クラスから継承されたメソッド jcifs.context.AbstractCIFSContext
getCredentials, hasDefaultCredentials, renewCredentials, run, withAnonymousCredentials, withCredentials, withDefaultCredentials, withGuestCrendentials
-
クラスから継承されたメソッド java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
クラスから継承されたメソッド java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
インタフェースから継承されたメソッド jcifs.CIFSContext
close, get, getBufferCache, getConfig, getCredentials, getDfs, getNameServiceClient, getPipe, getSIDResolver, getTransportPool, getUrlHandler, hasDefaultCredentials, renewCredentials, withAnonymousCredentials, withCredentials, withDefaultCredentials, withGuestCrendentials
-
-
-
-
メソッドの詳細
-
init
public static final void init(Properties props) throws CIFSException
Initialize singleton context using custom properties This method can only be called once.- パラメータ:
props-- 例外:
CIFSException
-
getInstance
public static final SingletonContext getInstance()
Get singleton context The singleton context will use system properties for configuration as well as values specified in a file specified through this jcifs.properties system property.- 戻り値:
- a global context, initialized on first call
-
registerSmbURLHandler
public static void registerSmbURLHandler()
This static method registers the SMB URL protocol handler which is required to use SMB URLs with the java.net.URL class. If this method is not called before attempting to create an SMB URL with the URL class the following exception will occur:Exception MalformedURLException: unknown protocol: smb at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:376) at java.net.URL.<init>(URL.java:330) at jcifs.smb.SmbFile.<init>(SmbFile.java:355) ...
-
-