public class HttpResourceParameters extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_HTML_RESOURCE
The HTML resource.
|
static int |
TYPE_HTTP_RESOURCE
Other HTTP resources (binary), such as images, etc.
|
static int |
TYPE_JARENTRY_RESOURCE
The JAR entry resource for Applets.
|
static int |
TYPE_XML_RESOURCE
The XML resource.
|
Constructor and Description |
---|
HttpResourceParameters()
Create with default parameters.
|
HttpResourceParameters(String name,
String fileName,
String extension)
Create with parameters.
|
Modifier and Type | Method and Description |
---|---|
HttpResource |
createResource(HttpWebServer webServer)
Create Http or HTML resource.
|
String |
getExtension()
Access extension.
|
String |
getFileName()
Access file name.
|
String |
getName()
Access name.
|
boolean |
isFromRoot()
Check if file name is from root.
|
boolean |
isNeverParsing()
Get do parsing flag.
|
boolean |
isParsedResourceType()
Should a parsed resource be created (HTML/XML).
|
boolean |
isPresent()
Checks if a resource is present in the file system
(exists, not a directory and readable).
|
void |
setClientJarResource(boolean isClientJar)
Sets a ClientJar resource type.
|
void |
setExtension(String extension)
Set extension.
|
void |
setFileName(String fileName)
Set file name.
|
void |
setFromRoot(boolean isFromRoot)
Set file name is from root.
|
void |
setHtmlResource(boolean isHtml)
Set HTML resource flag.
|
void |
setNeverParsing(boolean neverParsing)
Set do parsing flag.
|
void |
setXMLResource(boolean isXML)
Sets XML resource flag.
|
public static final int TYPE_HTTP_RESOURCE
public static final int TYPE_HTML_RESOURCE
public static final int TYPE_XML_RESOURCE
public static final int TYPE_JARENTRY_RESOURCE
public HttpResourceParameters()
public String getName()
public String getFileName()
public String getExtension()
public void setFileName(String fileName)
public void setExtension(String extension)
public void setHtmlResource(boolean isHtml)
public void setXMLResource(boolean isXML)
public void setClientJarResource(boolean isClientJar)
public boolean isParsedResourceType()
public HttpResource createResource(HttpWebServer webServer)
public void setNeverParsing(boolean neverParsing)
public boolean isNeverParsing()
public void setFromRoot(boolean isFromRoot)
public boolean isFromRoot()
public boolean isPresent()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.