public class WadlUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DETAILED_WADL_QUERY_PARAM
Name of the query parameter that allows generation of full WADL including
extended resource . |
Constructor and Description |
---|
WadlUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isDetailedWadlRequested(UriInfo uriInfo)
Return
true if generation of full WADL with
extended resources is requested. |
static <T> T |
unmarshall(InputStream inputStream,
SAXParserFactory saxParserFactory,
Class<T> resultClass)
Unmarshal a jaxb bean into a type of
resultClass from the given inputStream . |
public static final String DETAILED_WADL_QUERY_PARAM
extended resource
.public static <T> T unmarshall(InputStream inputStream, SAXParserFactory saxParserFactory, Class<T> resultClass) throws JAXBException, ParserConfigurationException, SAXException
resultClass
from the given inputStream
.T
- Type of the result jaxb bean.inputStream
- Input stream that contains input xml that should be processed.saxParserFactory
- Sax parser factory for unmarshalling xml.resultClass
- Class of the result bean into which the content of inputStream
should be unmarshalled.JAXBException
- In case of jaxb problem.ParserConfigurationException
- In case of problem with parsing xml.SAXException
- In case of problem with parsing xml.public static boolean isDetailedWadlRequested(UriInfo uriInfo)
true
if generation of full WADL with
extended resources
is requested.uriInfo
- URI info of the request.true
if full detailed WADL should be generated; false otherwise.Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.