public class GrailsByteArrayResource extends ByteArrayResource
Hacky version of the ByteArrayResource that implements the getURL() method, required for the resource to work with Spring's ServletContextResource.
Constructor and description |
---|
GrailsByteArrayResource(byte[] byteArray) |
GrailsByteArrayResource(byte[] byteArray, java.lang.String location) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.String |
getFilename() |
|
public java.net.URL |
getURL() Overrides the default behaviour to generate a fake "file:" URL so that the resource can be used from a ServletContextResource. |