public class LowLevelAppDescriptor extends AppDescriptor
An instance of this class is created by creating an instance of
LowLevelAppDescriptor.Builder
, invoking methods to add/modify state, and finally invoking
the LowLevelAppDescriptor.Builder.build()
method.
This application descriptor is compatible with low-level test containers that do not support Servlet. The following low-level test container factories are provided:
GrizzlyTestContainerFactory
for testing with the low-level
Grizzly HTTP container.HTTPContainerFactory
for testing with the Light Weight HTTP
server distributed with Java SE 6.InMemoryTestContainerFactory
for testing in memory without
using underlying HTTP client and server side functionality
to send requests and receive responses.Modifier and Type | Class and Description |
---|---|
static class |
LowLevelAppDescriptor.Builder
The builder for building a low-level application descriptor.
|
AppDescriptor.AppDescriptorBuilder<T extends AppDescriptor.AppDescriptorBuilder,V extends AppDescriptor>
Modifier and Type | Method and Description |
---|---|
String |
getContextPath()
Get the context path.
|
ResourceConfig |
getResourceConfig()
Get the resource configuration.
|
static LowLevelAppDescriptor |
transform(WebAppDescriptor wad)
Transform a Web-based application descriptor into a low-level
application descriptor.
|
getClientConfig
public ResourceConfig getResourceConfig()
public String getContextPath()
public static LowLevelAppDescriptor transform(WebAppDescriptor wad)
wad
- the Web-based application descriptor.Copyright © 2013 Oracle Corporation. All rights reserved.