protected static class ViewContextImpl.ViewURLStreamProvider extends Object implements URLStreamProvider
Modifier | Constructor and Description |
---|---|
protected |
ViewURLStreamProvider(URLStreamProvider streamProvider) |
Modifier and Type | Method and Description |
---|---|
protected static ViewContextImpl.ViewURLStreamProvider |
getProvider()
Factory method.
|
InputStream |
readFrom(String spec,
String requestMethod,
String params,
Map<String,String> headers)
Read from the input stream specified by the given URL spec.
|
protected ViewURLStreamProvider(URLStreamProvider streamProvider)
public InputStream readFrom(String spec, String requestMethod, String params, Map<String,String> headers) throws IOException
URLStreamProvider
readFrom
in interface URLStreamProvider
spec
- the String to parse as a URLrequestMethod
- the HTTP method (GET,POST,PUT,etc.).params
- the body of the request; may be nullheaders
- the headers of the request; may be nullIOException
- if an error occurred connecting to the serverprotected static ViewContextImpl.ViewURLStreamProvider getProvider()
Copyright © 2016. All rights reserved.