|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectResponseBuilder
org.apache.cocoon.rest.jaxrs.response.URLResponseBuilder
public abstract class URLResponseBuilder
A class to get a ResponseBuilder
that has all information set correctly that is provided
by a URLConnection
. It must be used when the JAX-RS container runs within the Cocoon
Servlet-Service framework.
CocoonJAXRSServlet
Constructor Summary | |
---|---|
URLResponseBuilder()
|
Method Summary | |
---|---|
static ResponseBuilder |
newInstance(String url)
The same as newInstance(URL) but the URL is passed as String . |
static ResponseBuilder |
newInstance(String url,
Map<String,Object> data)
The same as newInstance(URL, Map) but the URL is passed as String . |
static ResponseBuilder |
newInstance(URL url)
The same as newInstance(URL, Map) but no objects are passed to the URL. |
static ResponseBuilder |
newInstance(URL url,
Map<String,Object> data)
Create a ResponseBuilder that retrieves all available information (header parameters,
Last-Modified, Content-Type) from the URLConnection opened on the passed URL . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLResponseBuilder()
Method Detail |
---|
public static ResponseBuilder newInstance(String url)
newInstance(URL)
but the URL is passed as String
.
public static ResponseBuilder newInstance(String url, Map<String,Object> data)
newInstance(URL, Map)
but the URL is passed as String
.
public static ResponseBuilder newInstance(URL url)
newInstance(URL, Map)
but no objects are passed to the URL.
public static ResponseBuilder newInstance(URL url, Map<String,Object> data)
ResponseBuilder
that retrieves all available information (header parameters,
Last-Modified, Content-Type) from the URLConnection
opened on the passed URL
.
url
- The URL
that provides the content for the entity.data
- A Map
of objects passed to the URL
.
ResponseBuilder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |