public class FileResource extends Resource
Modifier and Type | Field and Description |
---|---|
protected File |
file |
protected ResourceName |
resName |
Modifier and Type | Method and Description |
---|---|
static FileResource |
getInstance(ResourceName resName,
File f) |
String |
getPortableResourceName()
The resource portable name (without workspace info)
|
CommandResponse |
getResourceAsResponse()
CommandResponse that will send the resource to the browser
|
InputStream |
getResourceAsStream()
An InputStream to the resource bytes.
|
String |
getResourceFileName()
The resource file name when deployed
|
String |
getResourceName()
The resource full name
|
getResourceUrl
protected File file
protected ResourceName resName
public static FileResource getInstance(ResourceName resName, File f) throws IOException
IOException
public CommandResponse getResourceAsResponse()
Resource
getResourceAsResponse
in class Resource
public InputStream getResourceAsStream()
Resource
getResourceAsStream
in class Resource
public String getResourceName()
Resource
getResourceName
in class Resource
public String getResourceFileName()
Resource
getResourceFileName
in class Resource
public String getPortableResourceName()
getPortableResourceName
in class Resource
Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.