public class org.jboss.resteasy.mock.MockHttpRequest extends org.jboss.resteasy.plugins.server.BaseHttpRequest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jboss.resteasy.mock.MockHttpRequest
super_class: org.jboss.resteasy.plugins.server.BaseHttpRequest
{
protected org.jboss.resteasy.specimpl.ResteasyHttpHeaders ;
descriptor: Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
flags: (0x0004) ACC_PROTECTED
protected java.io.InputStream inputStream;
descriptor: Ljava/io/InputStream;
flags: (0x0004) ACC_PROTECTED
protected java.lang.String httpMethod;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected java.util.Map<java.lang.String, java.lang.Object> attributes;
descriptor: Ljava/util/Map;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
protected org.jboss.resteasy.spi.ResteasyAsynchronousContext asynchronousContext;
descriptor: Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
flags: (0x0004) ACC_PROTECTED
protected static final java.net.URI EMPTY_URI;
descriptor: Ljava/net/URI;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc ""
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
putstatic org.jboss.resteasy.mock.MockHttpRequest.EMPTY_URI:Ljava/net/URI;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokespecial org.jboss.resteasy.plugins.server.BaseHttpRequest.<init>:(Lorg/jboss/resteasy/spi/ResteasyUriInfo;)V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jboss.resteasy.mock.MockHttpRequest.attributes:Ljava/util/Map;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
protected static org.jboss.resteasy.mock.MockHttpRequest initWithUri(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.net.URI
dup
aload 0
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: getstatic org.jboss.resteasy.mock.MockHttpRequest.EMPTY_URI:Ljava/net/URI;
astore 2
start local 2 2: aload 1
aload 2
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/net/URI;Ljava/net/URI;)Lorg/jboss/resteasy/mock/MockHttpRequest;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 absoluteUri Ljava/net/URI;
2 3 2 baseUri Ljava/net/URI;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
private static org.jboss.resteasy.mock.MockHttpRequest initWithUri(java.net.URI, java.net.URI);
descriptor: (Ljava/net/URI;Ljava/net/URI;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
getstatic org.jboss.resteasy.mock.MockHttpRequest.EMPTY_URI:Ljava/net/URI;
astore 1
1: StackMap locals:
StackMap stack:
new org.jboss.resteasy.mock.MockHttpRequest
dup
invokespecial org.jboss.resteasy.mock.MockHttpRequest.<init>:()V
astore 2
start local 2 2: aload 2
new org.jboss.resteasy.specimpl.ResteasyHttpHeaders
dup
new org.jboss.resteasy.util.CaseInsensitiveMap
dup
invokespecial org.jboss.resteasy.util.CaseInsensitiveMap.<init>:()V
invokespecial org.jboss.resteasy.specimpl.ResteasyHttpHeaders.<init>:(Ljavax/ws/rs/core/MultivaluedMap;)V
putfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
3: aload 0
invokestatic javax.ws.rs.core.UriBuilder.fromUri:(Ljava/net/URI;)Ljavax/ws/rs/core/UriBuilder;
aconst_null
invokevirtual javax.ws.rs.core.UriBuilder.replaceQuery:(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
iconst_0
anewarray java.lang.Object
invokevirtual javax.ws.rs.core.UriBuilder.build:([Ljava/lang/Object;)Ljava/net/URI;
pop
4: aload 1
aload 0
invokevirtual java.net.URI.relativize:(Ljava/net/URI;)Ljava/net/URI;
astore 3
start local 3 5: aload 3
invokevirtual java.net.URI.getRawPath:()Ljava/lang/String;
invokestatic javax.ws.rs.core.UriBuilder.fromUri:(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
aload 0
invokevirtual java.net.URI.getRawQuery:()Ljava/lang/String;
invokevirtual javax.ws.rs.core.UriBuilder.replaceQuery:(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
iconst_0
anewarray java.lang.Object
invokevirtual javax.ws.rs.core.UriBuilder.build:([Ljava/lang/Object;)Ljava/net/URI;
astore 3
6: aload 2
new org.jboss.resteasy.spi.ResteasyUriInfo
dup
aload 0
invokevirtual java.net.URI.toString:()Ljava/lang/String;
aload 0
invokevirtual java.net.URI.getRawQuery:()Ljava/lang/String;
aload 1
invokevirtual java.net.URI.getRawPath:()Ljava/lang/String;
invokespecial org.jboss.resteasy.spi.ResteasyUriInfo.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
putfield org.jboss.resteasy.mock.MockHttpRequest.uri:Lorg/jboss/resteasy/spi/ResteasyUriInfo;
7: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 absoluteUri Ljava/net/URI;
0 8 1 baseUri Ljava/net/URI;
2 8 2 request Lorg/jboss/resteasy/mock/MockHttpRequest;
5 8 3 relativeUri Ljava/net/URI;
MethodParameters:
Name Flags
absoluteUri
baseUri
public static org.jboss.resteasy.mock.MockHttpRequest create(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 2
start local 2 1: aload 2
aload 0
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 httpMethod Ljava/lang/String;
0 3 1 uri Ljava/lang/String;
1 3 2 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
httpMethod
uri
public static org.jboss.resteasy.mock.MockHttpRequest create(java.lang.String, java.net.URI, java.net.URI);
descriptor: (Ljava/lang/String;Ljava/net/URI;Ljava/net/URI;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/net/URI;Ljava/net/URI;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 3
start local 3 1: aload 3
aload 0
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 httpMethod Ljava/lang/String;
0 3 1 uriObj Ljava/net/URI;
0 3 2 baseUri Ljava/net/URI;
1 3 3 request Lorg/jboss/resteasy/mock/MockHttpRequest;
MethodParameters:
Name Flags
httpMethod
uriObj
baseUri
public static org.jboss.resteasy.mock.MockHttpRequest options(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 1
start local 1 1: aload 1
ldc "OPTIONS"
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
public static org.jboss.resteasy.mock.MockHttpRequest get(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 1
start local 1 1: aload 1
ldc "GET"
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
public static org.jboss.resteasy.mock.MockHttpRequest post(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 1
start local 1 1: aload 1
ldc "POST"
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
public static org.jboss.resteasy.mock.MockHttpRequest put(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 1
start local 1 1: aload 1
ldc "PUT"
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
public static org.jboss.resteasy.mock.MockHttpRequest delete(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 1
start local 1 1: aload 1
ldc "DELETE"
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
public static org.jboss.resteasy.mock.MockHttpRequest head(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jboss.resteasy.mock.MockHttpRequest.initWithUri:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
astore 1
start local 1 1: aload 1
ldc "HEAD"
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 uri Ljava/lang/String;
1 3 1 request Lorg/jboss/resteasy/mock/MockHttpRequest;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri
public static org.jboss.resteasy.mock.MockHttpRequest deepCopy(org.jboss.resteasy.spi.HttpRequest);
descriptor: (Lorg/jboss/resteasy/spi/HttpRequest;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: new org.jboss.resteasy.mock.MockHttpRequest
dup
invokespecial org.jboss.resteasy.mock.MockHttpRequest.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokeinterface org.jboss.resteasy.spi.HttpRequest.getUri:()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
putfield org.jboss.resteasy.mock.MockHttpRequest.uri:Lorg/jboss/resteasy/spi/ResteasyUriInfo;
2: aload 1
aload 0
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpHeaders:()Ljavax/ws/rs/core/HttpHeaders;
checkcast org.jboss.resteasy.specimpl.ResteasyHttpHeaders
putfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
3: aload 1
aload 0
invokeinterface org.jboss.resteasy.spi.HttpRequest.getHttpMethod:()Ljava/lang/String;
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
4: sipush 1024
aload 0
invokeinterface org.jboss.resteasy.spi.HttpRequest.getInputStream:()Ljava/io/InputStream;
invokestatic org.jboss.resteasy.util.ReadFromStream.readFromStream:(ILjava/io/InputStream;)[B
astore 2
start local 2 5: aload 1
new java.io.ByteArrayInputStream
dup
aload 2
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
putfield org.jboss.resteasy.mock.MockHttpRequest.inputStream:Ljava/io/InputStream;
6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 request Lorg/jboss/resteasy/spi/HttpRequest;
1 7 1 mock Lorg/jboss/resteasy/mock/MockHttpRequest;
5 7 2 bytes [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
request
public void setHttpMethod(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 method Ljava/lang/String;
MethodParameters:
Name Flags
method
public org.jboss.resteasy.spi.ResteasyAsynchronousContext getAsynchronousContext();
descriptor: ()Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.asynchronousContext:Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public void setAsynchronousContext(org.jboss.resteasy.spi.ResteasyAsynchronousContext);
descriptor: (Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jboss.resteasy.mock.MockHttpRequest.asynchronousContext:Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 asynchronousContext Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
MethodParameters:
Name Flags
asynchronousContext
public org.jboss.resteasy.mock.MockHttpRequest (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getRequestHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
aload 1
aload 2
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 name Ljava/lang/String;
0 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public org.jboss.resteasy.mock.MockHttpRequest accept(java.util.List<javax.ws.rs.core.MediaType>);
descriptor: (Ljava/util/List;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.jboss.resteasy.mock.MockHttpRequest java.util.List top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast javax.ws.rs.core.MediaType
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.jboss.resteasy.mock.MockHttpRequest.accept:(Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/mock/MockHttpRequest;
pop
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 5 1 accepts Ljava/util/List<Ljavax/ws/rs/core/MediaType;>;
2 3 2 accept Ljavax/ws/rs/core/MediaType;
Signature: (Ljava/util/List<Ljavax/ws/rs/core/MediaType;>;)Lorg/jboss/resteasy/mock/MockHttpRequest;
MethodParameters:
Name Flags
accepts
public org.jboss.resteasy.mock.MockHttpRequest accept(javax.ws.rs.core.MediaType);
descriptor: (Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Accept"
aload 1
invokevirtual javax.ws.rs.core.MediaType.toString:()Ljava/lang/String;
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 accept Ljavax/ws/rs/core/MediaType;
MethodParameters:
Name Flags
accept
public org.jboss.resteasy.mock.MockHttpRequest accept(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Accept"
aload 1
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 type Ljava/lang/String;
MethodParameters:
Name Flags
type
public org.jboss.resteasy.mock.MockHttpRequest language(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Accept-Language"
aload 1
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 language Ljava/lang/String;
MethodParameters:
Name Flags
language
public org.jboss.resteasy.mock.MockHttpRequest cookie(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new javax.ws.rs.core.Cookie
dup
aload 1
aload 2
invokespecial javax.ws.rs.core.Cookie.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 3
start local 3 1: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableCookies:()Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 3 1 name Ljava/lang/String;
0 3 2 value Ljava/lang/String;
1 3 3 cookie Ljavax/ws/rs/core/Cookie;
MethodParameters:
Name Flags
name
value
public org.jboss.resteasy.mock.MockHttpRequest contentType(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
aload 1
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 type Ljava/lang/String;
MethodParameters:
Name Flags
type
public org.jboss.resteasy.mock.MockHttpRequest contentType(javax.ws.rs.core.MediaType);
descriptor: (Ljavax/ws/rs/core/MediaType;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
invokeinterface javax.ws.rs.core.MultivaluedMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
ldc "Content-Type"
aload 1
invokevirtual javax.ws.rs.core.MediaType.toString:()Ljava/lang/String;
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 5 1 type Ljavax/ws/rs/core/MediaType;
MethodParameters:
Name Flags
type
public org.jboss.resteasy.mock.MockHttpRequest content(byte[]);
descriptor: ([B)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.ByteArrayInputStream
dup
aload 1
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
putfield org.jboss.resteasy.mock.MockHttpRequest.inputStream:Ljava/io/InputStream;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 bytes [B
MethodParameters:
Name Flags
bytes
public org.jboss.resteasy.mock.MockHttpRequest content(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jboss.resteasy.mock.MockHttpRequest.inputStream:Ljava/io/InputStream;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 stream Ljava/io/InputStream;
MethodParameters:
Name Flags
stream
public org.jboss.resteasy.mock.MockHttpRequest (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.decodedFormParameters:Ljavax/ws/rs/core/MultivaluedMap;
ifnonnull 3
1: aload 0
new org.jboss.resteasy.specimpl.MultivaluedMapImpl
dup
invokespecial org.jboss.resteasy.specimpl.MultivaluedMapImpl.<init>:()V
putfield org.jboss.resteasy.mock.MockHttpRequest.decodedFormParameters:Ljavax/ws/rs/core/MultivaluedMap;
2: aload 0
ldc "application/x-www-form-urlencoded"
invokevirtual org.jboss.resteasy.mock.MockHttpRequest.contentType:(Ljava/lang/String;)Lorg/jboss/resteasy/mock/MockHttpRequest;
pop
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.decodedFormParameters:Ljavax/ws/rs/core/MultivaluedMap;
aload 1
aload 2
invokeinterface javax.ws.rs.core.MultivaluedMap.add:(Ljava/lang/Object;Ljava/lang/Object;)V
4: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 5 1 name Ljava/lang/String;
0 5 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public javax.ws.rs.core.HttpHeaders ();
descriptor: ()Ljavax/ws/rs/core/HttpHeaders;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public javax.ws.rs.core.MultivaluedMap<java.lang.String, java.lang.String> getMutableHeaders();
descriptor: ()Ljavax/ws/rs/core/MultivaluedMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpHeaders:Lorg/jboss/resteasy/specimpl/ResteasyHttpHeaders;
invokevirtual org.jboss.resteasy.specimpl.ResteasyHttpHeaders.getMutableHeaders:()Ljavax/ws/rs/core/MultivaluedMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
Signature: ()Ljavax/ws/rs/core/MultivaluedMap<Ljava/lang/String;Ljava/lang/String;>;
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.inputStream:Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public void setInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jboss.resteasy.mock.MockHttpRequest.inputStream:Ljava/io/InputStream;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 stream Ljava/io/InputStream;
MethodParameters:
Name Flags
stream
public org.jboss.resteasy.spi.ResteasyUriInfo getUri();
descriptor: ()Lorg/jboss/resteasy/spi/ResteasyUriInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.uri:Lorg/jboss/resteasy/spi/ResteasyUriInfo;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public java.lang.String getHttpMethod();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.httpMethod:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public void initialRequestThreadFinished();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public java.lang.Object getAttribute(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.attributes:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 1 1 attribute Ljava/lang/String;
MethodParameters:
Name Flags
attribute
public void setAttribute(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.attributes:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 name Ljava/lang/String;
0 2 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
name
value
public void removeAttribute(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.attributes:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.util.Enumeration<java.lang.String> getAttributeNames();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new org.jboss.resteasy.mock.MockHttpRequest$1
dup
aload 0
invokespecial org.jboss.resteasy.mock.MockHttpRequest$1.<init>:(Lorg/jboss/resteasy/mock/MockHttpRequest;)V
astore 1
start local 1 1: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
1 2 1 en Ljava/util/Enumeration<Ljava/lang/String;>;
Signature: ()Ljava/util/Enumeration<Ljava/lang/String;>;
public org.jboss.resteasy.spi.ResteasyAsynchronousContext getAsyncContext();
descriptor: ()Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.asynchronousContext:Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
ifnull 1
aload 0
getfield org.jboss.resteasy.mock.MockHttpRequest.asynchronousContext:Lorg/jboss/resteasy/spi/ResteasyAsynchronousContext;
areturn
1: StackMap locals:
StackMap stack:
new org.jboss.resteasy.mock.MockHttpRequest$2
dup
aload 0
invokespecial org.jboss.resteasy.mock.MockHttpRequest$2.<init>:(Lorg/jboss/resteasy/mock/MockHttpRequest;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
public void forward(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: new org.jboss.resteasy.spi.NotImplementedYetException
dup
invokespecial org.jboss.resteasy.spi.NotImplementedYetException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
0 1 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public boolean wasForwarded();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jboss/resteasy/mock/MockHttpRequest;
}
SourceFile: "MockHttpRequest.java"
NestMembers:
org.jboss.resteasy.mock.MockHttpRequest$1 org.jboss.resteasy.mock.MockHttpRequest$2
InnerClasses:
org.jboss.resteasy.mock.MockHttpRequest$1
org.jboss.resteasy.mock.MockHttpRequest$2