system.web.HttpApplication Maven / Gradle / Ivy
/*
* MIT License
*
* Copyright (c) 2024 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector v. 1.15.0.0
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package system.web;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.web.HttpContext;
import system.web.BeginEventHandler;
import system.web.EndEventHandler;
import system.IAsyncResult;
import system.IAsyncResultImplementation;
import system.AsyncCallback;
import system.componentmodel.ISite;
import system.componentmodel.ISiteImplementation;
import system.security.principal.IPrincipal;
import system.security.principal.IPrincipalImplementation;
import system.web.HttpApplicationState;
import system.web.HttpModuleCollection;
import system.web.HttpRequest;
import system.web.HttpResponse;
import system.web.HttpServerUtility;
import system.web.sessionstate.HttpSessionState;
import system.EventHandler;
/**
* The base .NET class managing System.Web.HttpApplication, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Web.HttpApplication
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*
* @author MASES s.r.l https://masesgroup.com
* @version 1.15.0.0
*/
public class HttpApplication extends NetObject implements AutoCloseable {
/**
* Fully assembly qualified name: System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
*/
public static final String assemblyFullName = "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";
/**
* Assembly name: System.Web
*/
public static final String assemblyShortName = "System.Web";
/**
* Qualified class name: System.Web.HttpApplication
*/
public static final String className = "System.Web.HttpApplication";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
String classToCreate = className + ", "
+ (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Creating %s", classToCreate);
JCType typeCreated = bridge.GetType(classToCreate);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Created: %s",
(typeCreated != null) ? typeCreated.toString() : "Returned null value");
return typeCreated;
} catch (JCException e) {
JCOReflector.writeLog(e);
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* Internal constructor. Use with caution
*/
public HttpApplication(java.lang.Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public java.lang.Object getJCOInstance() {
return classInstance;
}
public void setJCOInstance(JCObject instance) {
classInstance = instance;
super.setJCOInstance(classInstance);
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link HttpApplication}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link HttpApplication} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static HttpApplication cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new HttpApplication(from.getJCOInstance());
}
// Constructors section
public HttpApplication() throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.FormatException {
try {
// add reference to assemblyName.dll file
addReference(JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
setJCOInstance((JCObject)classType.NewObject());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Methods section
public java.lang.String GetOutputCacheProviderName(HttpContext context) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.web.HttpException, system.IndexOutOfRangeException, system.configuration.provider.ProviderException, system.configuration.ConfigurationErrorsException, system.NotSupportedException, system.resources.MissingManifestResourceException, system.InvalidOperationException, system.configuration.ConfigurationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Invoke("GetOutputCacheProviderName", context == null ? null : context.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public java.lang.String GetVaryByCustomString(HttpContext context, java.lang.String custom) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.globalization.CultureNotFoundException, system.NotImplementedException, system.IndexOutOfRangeException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.web.HttpException, system.web.HttpRequestValidationException, system.configuration.ConfigurationErrorsException, system.NotSupportedException, system.configuration.ConfigurationException, system.NullReferenceException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
return (java.lang.String)classInstance.Invoke("GetVaryByCustomString", context == null ? null : context.getJCOInstance(), custom);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnAcquireRequestStateAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnAcquireRequestStateAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnAcquireRequestStateAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnAcquireRequestStateAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnAuthenticateRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnAuthenticateRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnAuthenticateRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnAuthenticateRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnAuthorizeRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnAuthorizeRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnAuthorizeRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnAuthorizeRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnBeginRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnBeginRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnBeginRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnBeginRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnEndRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnEndRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnEndRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnEndRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnLogRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.PlatformNotSupportedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnLogRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnLogRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.PlatformNotSupportedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnLogRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnMapRequestHandlerAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.PlatformNotSupportedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnMapRequestHandlerAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnMapRequestHandlerAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.PlatformNotSupportedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnMapRequestHandlerAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostAcquireRequestStateAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostAcquireRequestStateAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostAcquireRequestStateAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostAcquireRequestStateAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostAuthenticateRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostAuthenticateRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostAuthenticateRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostAuthenticateRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostAuthorizeRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostAuthorizeRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostAuthorizeRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostAuthorizeRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostLogRequestAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.PlatformNotSupportedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostLogRequestAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostLogRequestAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.PlatformNotSupportedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostLogRequestAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostMapRequestHandlerAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostMapRequestHandlerAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostMapRequestHandlerAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostMapRequestHandlerAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostReleaseRequestStateAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostReleaseRequestStateAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostReleaseRequestStateAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostReleaseRequestStateAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostRequestHandlerExecuteAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostRequestHandlerExecuteAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostRequestHandlerExecuteAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostRequestHandlerExecuteAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostResolveRequestCacheAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostResolveRequestCacheAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostResolveRequestCacheAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostResolveRequestCacheAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostUpdateRequestCacheAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostUpdateRequestCacheAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPostUpdateRequestCacheAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPostUpdateRequestCacheAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPreRequestHandlerExecuteAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPreRequestHandlerExecuteAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnPreRequestHandlerExecuteAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnPreRequestHandlerExecuteAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnReleaseRequestStateAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnReleaseRequestStateAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnReleaseRequestStateAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnReleaseRequestStateAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnResolveRequestCacheAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnResolveRequestCacheAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnResolveRequestCacheAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnResolveRequestCacheAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnUpdateRequestCacheAsync(BeginEventHandler bh, EndEventHandler eh) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.FormatException, system.ArgumentException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnUpdateRequestCacheAsync", bh, eh);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void AddOnUpdateRequestCacheAsync(BeginEventHandler beginHandler, EndEventHandler endHandler, NetObject state) throws Throwable, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.ArgumentException, system.FormatException, system.ObjectDisposedException, system.threading.AbandonedMutexException, system.InvalidOperationException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("AddOnUpdateRequestCacheAsync", beginHandler, endHandler, state == null ? null : state.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void CompleteRequest() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("CompleteRequest");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Dispose() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Dispose");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void Init() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Init");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static void RegisterModule(NetType moduleType) throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.web.HttpException, system.InvalidOperationException, system.configuration.ConfigurationException, system.configuration.provider.ProviderException, system.NotSupportedException, system.NullReferenceException, system.configuration.ConfigurationErrorsException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
classType.Invoke("RegisterModule", moduleType == null ? null : moduleType.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIHttpAsyncHandler method available in IHttpAsyncHandler to obtain an object with an invocable method
*/
@Deprecated
public IAsyncResult BeginProcessRequest(HttpContext context, AsyncCallback cb, NetObject extraData) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIHttpAsyncHandler to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIHttpAsyncHandler method available in IHttpAsyncHandler to obtain an object with an invocable method
*/
@Deprecated
public void EndProcessRequest(IAsyncResult result) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIHttpAsyncHandler to obtain the full interface.");
}
/**
* @deprecated Not for public use because the method is implemented in .NET with an explicit interface.
* Use the static ToIHttpHandler method available in IHttpHandler to obtain an object with an invocable method
*/
@Deprecated
public void ProcessRequest(HttpContext context) throws Throwable {
throw new UnsupportedOperationException("Not for public use because the method is implemented with an explicit interface. Use ToIHttpHandler to obtain the full interface.");
}
public void close() throws Exception {
try {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Invoke("Dispose");
}
catch (JCNativeException jcne) {
throw translateException(jcne);
}
} catch (Throwable t) {
throw new Exception(t);
}
}
// Properties section
public ISite getSite() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Site");
return new ISiteImplementation(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void setSite(ISite Site) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.Set("Site", Site == null ? null : Site.getJCOInstance());
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public IPrincipal getUser() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.NotSupportedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("User");
return new IPrincipalImplementation(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpApplicationState getApplication() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Application");
return new HttpApplicationState(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpContext getContext() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Context");
return new HttpContext(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpModuleCollection getModules() throws Throwable, system.ArgumentNullException, system.ArgumentOutOfRangeException, system.ArgumentException, system.IndexOutOfRangeException, system.globalization.CultureNotFoundException, system.InvalidOperationException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Modules");
return new HttpModuleCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpRequest getRequest() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Request");
return new HttpRequest(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpResponse getResponse() throws Throwable, system.ArgumentNullException, system.ArgumentException, system.InvalidOperationException, system.MissingMethodException, system.reflection.TargetInvocationException, system.NotImplementedException, system.ArgumentOutOfRangeException, system.globalization.CultureNotFoundException, system.resources.MissingManifestResourceException, system.ObjectDisposedException, system.web.HttpException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Response");
return new HttpResponse(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpServerUtility getServer() throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Server");
return new HttpServerUtility(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public HttpSessionState getSession() throws Throwable, system.ArgumentException, system.ArgumentNullException, system.resources.MissingManifestResourceException, system.InvalidOperationException, system.web.HttpException, system.configuration.ConfigurationErrorsException, system.configuration.ConfigurationException, system.ArgumentOutOfRangeException {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
JCObject val = (JCObject)classInstance.Get("Session");
return new HttpSessionState(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
public void addAcquireRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("AcquireRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeAcquireRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("AcquireRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addAuthenticateRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("AuthenticateRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeAuthenticateRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("AuthenticateRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addAuthorizeRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("AuthorizeRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeAuthorizeRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("AuthorizeRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addBeginRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("BeginRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeBeginRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("BeginRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addDisposed(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("Disposed", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeDisposed(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("Disposed", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addEndRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("EndRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeEndRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("EndRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addError(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("Error", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeError(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("Error", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addLogRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("LogRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeLogRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("LogRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addMapRequestHandler(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("MapRequestHandler", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeMapRequestHandler(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("MapRequestHandler", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostAcquireRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostAcquireRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostAcquireRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostAcquireRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostAuthenticateRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostAuthenticateRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostAuthenticateRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostAuthenticateRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostAuthorizeRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostAuthorizeRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostAuthorizeRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostAuthorizeRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostLogRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostLogRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostLogRequest(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostLogRequest", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostMapRequestHandler(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostMapRequestHandler", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostMapRequestHandler(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostMapRequestHandler", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostReleaseRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostReleaseRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostReleaseRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostReleaseRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostRequestHandlerExecute(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostRequestHandlerExecute", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostRequestHandlerExecute(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostRequestHandlerExecute", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostResolveRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostResolveRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostResolveRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostResolveRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPostUpdateRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PostUpdateRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePostUpdateRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PostUpdateRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreRequestHandlerExecute(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreRequestHandlerExecute", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreRequestHandlerExecute(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreRequestHandlerExecute", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreSendRequestContent(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreSendRequestContent", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreSendRequestContent(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreSendRequestContent", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addPreSendRequestHeaders(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("PreSendRequestHeaders", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removePreSendRequestHeaders(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("PreSendRequestHeaders", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addReleaseRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("ReleaseRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeReleaseRequestState(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("ReleaseRequestState", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addRequestCompleted(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("RequestCompleted", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeRequestCompleted(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("RequestCompleted", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addResolveRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("ResolveRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeResolveRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("ResolveRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void addUpdateRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.RegisterEventListener("UpdateRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public void removeUpdateRequestCache(EventHandler handler) throws Throwable {
if (classInstance == null)
throw new UnsupportedOperationException("classInstance is null.");
try {
classInstance.UnregisterEventListener("UpdateRequestCache", handler);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
}