org.apache.cocoon.rest.controller.response
Class URLResponse
java.lang.Object
org.apache.cocoon.rest.controller.response.URLResponse
- All Implemented Interfaces:
- RestResponse
public class URLResponse
- extends Object
- implements RestResponse
A URL
as controller response.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URLResponse
public URLResponse(String url)
throws MalformedURLException
- Throws:
MalformedURLException
URLResponse
public URLResponse(String url,
Map<String,Object> data)
throws MalformedURLException
- Throws:
MalformedURLException
URLResponse
public URLResponse(URL url)
URLResponse
public URLResponse(URL url,
Map<String,Object> data)
execute
public void execute(OutputStream outputStream)
throws Exception
- Specified by:
execute
in interface RestResponse
- Throws:
Exception
getData
public Map<String,Object> getData()
getUrl
public URL getUrl()
setup
public RestResponseMetaData setup(Map<String,Object> inputParameters)
throws Exception
- Specified by:
setup
in interface RestResponse
- Throws:
Exception
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.