|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.springframework.core.io.ByteArrayResource
org.codehaus.groovy.grails.support.GrailsByteArrayResource
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 Summary | |
GrailsByteArrayResource(byte[] byteArray)
|
|
GrailsByteArrayResource(byte[] byteArray, java.lang.String location)
|
|
| Method Summary | |
|---|---|
java.lang.String
|
getFilename()
|
java.net.URL
|
getURL()
Overrides the default behaviour to generate a fake "file:" URL so that the resource can be used from a ServletContextResource. |
| Constructor Detail |
|---|
public GrailsByteArrayResource(byte[] byteArray)
public GrailsByteArrayResource(byte[] byteArray, java.lang.String location)
| Method Detail |
|---|
@Override public java.lang.String getFilename()
@Override public java.net.URL getURL()
Groovy Documentation