Class HttpExchange
public class HttpExchange : JVMBridgeBase<HttpExchange>, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
HttpExchange
- Implements
- Inherited Members
- Extension Methods
Constructors
HttpExchange()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("HttpExchange class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpExchange()
HttpExchange(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpExchange(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
HttpExchange(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
[Obsolete("HttpExchange class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public HttpExchange(params object[] args)
Parameters
argsobject[]
Properties
AttributeNames
public Set<String> AttributeNames { get; }
Property Value
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
ContextPath
public String ContextPath { get; }
Property Value
HttpContext
public HttpContext HttpContext { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
LocalAddress
public InetSocketAddress LocalAddress { get; }
Property Value
PathInfo
public String PathInfo { get; }
Property Value
Protocol
public String Protocol { get; }
Property Value
QueryString
public String QueryString { get; }
Property Value
REQUEST_CIPHER_SUITE
public static String REQUEST_CIPHER_SUITE { get; }
Property Value
REQUEST_KEY_SIZE
public static String REQUEST_KEY_SIZE { get; }
Property Value
REQUEST_X509CERTIFICATE
public static String REQUEST_X509CERTIFICATE { get; }
Property Value
RemoteAddress
https://docs.oracle.com/javase/8/docs/api/javax/xml/ws/spi/http/HttpExchange.html#getRemoteAddress--
public InetSocketAddress RemoteAddress { get; }
Property Value
RequestBody
public InputStream RequestBody { get; }
Property Value
RequestHeaders
public Map<String, List<String>> RequestHeaders { get; }
Property Value
RequestMethod
https://docs.oracle.com/javase/8/docs/api/javax/xml/ws/spi/http/HttpExchange.html#getRequestMethod--
public String RequestMethod { get; }
Property Value
RequestURI
public String RequestURI { get; }
Property Value
ResponseBody
public OutputStream ResponseBody { get; }
Property Value
ResponseHeaders
public Map<String, List<String>> ResponseHeaders { get; }
Property Value
Scheme
public String Scheme { get; }
Property Value
UserPrincipal
https://docs.oracle.com/javase/8/docs/api/javax/xml/ws/spi/http/HttpExchange.html#getUserPrincipal--
public Principal UserPrincipal { get; }
Property Value
Methods
AddResponseHeader(String, String)
public void AddResponseHeader(String arg0, String arg1)
Parameters
Close()
public void Close()
Exceptions
GetAttribute(String)
public object GetAttribute(String arg0)
Parameters
Returns
GetRequestHeader(String)
public String GetRequestHeader(String arg0)
Parameters
Returns
IsUserInRole(String)
public bool IsUserInRole(String arg0)
Parameters
Returns
SetStatus(int)
public void SetStatus(int arg0)