Package system.web.hosting
Class HostingEnvironment
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.web.hosting.HostingEnvironment
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class HostingEnvironment extends MarshalByRefObject
The base .NET class managing System.Web.Hosting.HostingEnvironment, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Web.Hosting.HostingEnvironment
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic java.lang.String
assemblyShortName
Assembly name: System.Webstatic java.lang.String
className
Qualified class name: System.Web.Hosting.HostingEnvironmentstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description HostingEnvironment()
HostingEnvironment(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostingEnvironment
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoHostingEnvironment
, a cast assert is made to check if types are compatible.static void
DecrementBusyCount()
static IApplicationHost
getApplicationHost()
static java.lang.String
getApplicationID()
static ApplicationMonitors
getApplicationMonitors()
static java.lang.String
getApplicationPhysicalPath()
static java.lang.String
getApplicationVirtualPath()
static Cache
getCache()
static boolean
getInClientBuildManager()
static NetException
getInitializationException()
static boolean
getIsDevelopmentEnvironment()
static boolean
getIsHosted()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typestatic int
getMaxConcurrentRequestsPerCPU()
static int
getMaxConcurrentThreadsPerCPU()
static ApplicationShutdownReason
getShutdownReason()
static java.lang.String
getSiteName()
static VirtualPathProvider
getVirtualPathProvider()
static IDisposable
Impersonate()
static void
IncrementBusyCount()
NetObject
InitializeLifetimeService()
static void
InitiateShutdown()
static java.lang.String
MapPath(java.lang.String virtualPath)
static void
MessageReceived()
static void
RegisterObject(IRegisteredObject obj)
static void
RegisterVirtualPathProvider(VirtualPathProvider virtualPathProvider)
static IDisposable
SetCultures()
static IDisposable
SetCultures(java.lang.String virtualPath)
void
setJCOInstance(JCObject instance)
static void
setMaxConcurrentRequestsPerCPU(int MaxConcurrentRequestsPerCPU)
static void
setMaxConcurrentThreadsPerCPU(int MaxConcurrentThreadsPerCPU)
static void
UnregisterObject(IRegisteredObject obj)
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Web- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Web.Hosting.HostingEnvironment- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HostingEnvironment
public HostingEnvironment(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
HostingEnvironment
public HostingEnvironment() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, FormatException, NotImplementedException, NotSupportedException, IndexOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, AbandonedMutexException, HttpException, SecurityException, ConfigurationErrorsException, SemaphoreFullException, NullReferenceException, MemberAccessException, ProviderException, OverflowException, RemotingException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
FormatException
NotImplementedException
NotSupportedException
IndexOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
AbandonedMutexException
HttpException
SecurityException
ConfigurationErrorsException
SemaphoreFullException
NullReferenceException
MemberAccessException
ProviderException
OverflowException
RemotingException
MulticastNotSupportedException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classMarshalByRefObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classMarshalByRefObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classMarshalByRefObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classMarshalByRefObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classMarshalByRefObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static HostingEnvironment cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoHostingEnvironment
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
HostingEnvironment
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Impersonate
public static IDisposable Impersonate() throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, HttpException
-
SetCultures
public static IDisposable SetCultures() throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, HttpException, InvalidOperationException, ProviderException, ConfigurationErrorsException, OutOfMemoryException, CultureNotFoundException, TypeInitializationException, TypeLoadException, MissingMethodException, TargetInvocationException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
HttpException
InvalidOperationException
ProviderException
ConfigurationErrorsException
OutOfMemoryException
CultureNotFoundException
TypeInitializationException
TypeLoadException
MissingMethodException
TargetInvocationException
NotSupportedException
-
SetCultures
public static IDisposable SetCultures(java.lang.String virtualPath) throws java.lang.Throwable, ArgumentNullException, HttpException, ArgumentOutOfRangeException, OutOfMemoryException, ArgumentException, CultureNotFoundException, InvalidOperationException, ProviderException, ConfigurationErrorsException, TypeInitializationException, TypeLoadException, MissingMethodException, TargetInvocationException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
HttpException
ArgumentOutOfRangeException
OutOfMemoryException
ArgumentException
CultureNotFoundException
InvalidOperationException
ProviderException
ConfigurationErrorsException
TypeInitializationException
TypeLoadException
MissingMethodException
TargetInvocationException
NotSupportedException
-
InitializeLifetimeService
public NetObject InitializeLifetimeService() throws java.lang.Throwable
- Overrides:
InitializeLifetimeService
in classMarshalByRefObject
- Throws:
java.lang.Throwable
-
MapPath
public static java.lang.String MapPath(java.lang.String virtualPath) throws java.lang.Throwable, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, HttpException, OutOfMemoryException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
HttpException
OutOfMemoryException
NotSupportedException
-
DecrementBusyCount
public static void DecrementBusyCount() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
-
IncrementBusyCount
public static void IncrementBusyCount() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
InitiateShutdown
public static void InitiateShutdown() throws java.lang.Throwable, ArgumentException, IndexOutOfRangeException, SecurityException, ArgumentNullException, NotSupportedException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, HttpException, ConfigurationErrorsException, NotImplementedException, ConfigurationException, ObjectDisposedException, AbandonedMutexException, SemaphoreFullException
- Throws:
java.lang.Throwable
ArgumentException
IndexOutOfRangeException
SecurityException
ArgumentNullException
NotSupportedException
InvalidOperationException
MissingMethodException
TargetInvocationException
CultureNotFoundException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
HttpException
ConfigurationErrorsException
NotImplementedException
ConfigurationException
ObjectDisposedException
AbandonedMutexException
SemaphoreFullException
-
MessageReceived
public static void MessageReceived() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentException
-
RegisterObject
public static void RegisterObject(IRegisteredObject obj) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, FormatException, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ArgumentOutOfRangeException
FormatException
InvalidOperationException
-
RegisterVirtualPathProvider
public static void RegisterVirtualPathProvider(VirtualPathProvider virtualPathProvider) throws java.lang.Throwable, InvalidOperationException, ArgumentNullException, ArgumentException, IndexOutOfRangeException, NotSupportedException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, PathTooLongException, DriveNotFoundException, OperationCanceledException, MissingManifestResourceException, ArgumentOutOfRangeException, XmlException, ConfigurationErrorsException
- Throws:
java.lang.Throwable
InvalidOperationException
ArgumentNullException
ArgumentException
IndexOutOfRangeException
NotSupportedException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
PathTooLongException
DriveNotFoundException
OperationCanceledException
MissingManifestResourceException
ArgumentOutOfRangeException
XmlException
ConfigurationErrorsException
-
UnregisterObject
public static void UnregisterObject(IRegisteredObject obj) throws java.lang.Throwable, ArgumentException, ArgumentNullException, ObjectDisposedException, AbandonedMutexException, IndexOutOfRangeException, SecurityException, NotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, InvalidOperationException, HttpException, ConfigurationErrorsException, MissingManifestResourceException, ConfigurationException, SemaphoreFullException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
ObjectDisposedException
AbandonedMutexException
IndexOutOfRangeException
SecurityException
NotSupportedException
ArgumentOutOfRangeException
OutOfMemoryException
FormatException
InvalidOperationException
HttpException
ConfigurationErrorsException
MissingManifestResourceException
ConfigurationException
SemaphoreFullException
-
getInClientBuildManager
public static boolean getInClientBuildManager() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsDevelopmentEnvironment
public static boolean getIsDevelopmentEnvironment() throws java.lang.Throwable, ArgumentNullException, NullReferenceException, ArgumentOutOfRangeException, ArgumentException, CultureNotFoundException, IndexOutOfRangeException, PathTooLongException, MemberAccessException, FileNotFoundException, DirectoryNotFoundException, UnauthorizedAccessException, IOException, DriveNotFoundException, OperationCanceledException, NotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
NullReferenceException
ArgumentOutOfRangeException
ArgumentException
CultureNotFoundException
IndexOutOfRangeException
PathTooLongException
MemberAccessException
FileNotFoundException
DirectoryNotFoundException
UnauthorizedAccessException
IOException
DriveNotFoundException
OperationCanceledException
NotSupportedException
-
getIsHosted
public static boolean getIsHosted() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getMaxConcurrentRequestsPerCPU
public static int getMaxConcurrentRequestsPerCPU() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
PlatformNotSupportedException
-
setMaxConcurrentRequestsPerCPU
public static void setMaxConcurrentRequestsPerCPU(int MaxConcurrentRequestsPerCPU) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, PlatformNotSupportedException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
PlatformNotSupportedException
FormatException
-
getMaxConcurrentThreadsPerCPU
public static int getMaxConcurrentThreadsPerCPU() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
PlatformNotSupportedException
-
setMaxConcurrentThreadsPerCPU
public static void setMaxConcurrentThreadsPerCPU(int MaxConcurrentThreadsPerCPU) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, PlatformNotSupportedException, FormatException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
NotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
PlatformNotSupportedException
FormatException
-
getInitializationException
public static NetException getInitializationException() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getApplicationID
public static java.lang.String getApplicationID() throws java.lang.Throwable, ArgumentException
- Throws:
java.lang.Throwable
ArgumentException
-
getApplicationPhysicalPath
public static java.lang.String getApplicationPhysicalPath() throws java.lang.Throwable, ArgumentNullException, ArgumentException, ArgumentOutOfRangeException, FormatException, IndexOutOfRangeException, CultureNotFoundException, InvalidOperationException, NotSupportedException
-
getApplicationVirtualPath
public static java.lang.String getApplicationVirtualPath() throws java.lang.Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, HttpException
-
getSiteName
public static java.lang.String getSiteName() throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException
-
getShutdownReason
public static ApplicationShutdownReason getShutdownReason() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getCache
public static Cache getCache() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, HttpException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
InvalidOperationException
MissingMethodException
TargetInvocationException
NotImplementedException
ArgumentOutOfRangeException
CultureNotFoundException
MissingManifestResourceException
ObjectDisposedException
IndexOutOfRangeException
HttpException
-
getApplicationMonitors
public static ApplicationMonitors getApplicationMonitors() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getApplicationHost
public static IApplicationHost getApplicationHost() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getVirtualPathProvider
public static VirtualPathProvider getVirtualPathProvider() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentNullException, ArgumentException, ObjectDisposedException, AbandonedMutexException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
ArgumentNullException
ArgumentException
ObjectDisposedException
AbandonedMutexException
-
-