public class UrlResource extends BaseResource implements InternalResource, Externalizable
bytes| Constructor and Description |
|---|
UrlResource() |
UrlResource(String path) |
UrlResource(String path,
String encoding) |
UrlResource(URL url) |
UrlResource(URL url,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This implementation compares the underlying URL references.
|
String |
getBasicAuthentication() |
String |
getEncoding() |
File |
getFile() |
InputStream |
getInputStream()
This implementation opens an InputStream for the given URL.
|
String |
getPassword() |
Reader |
getReader() |
URL |
getURL() |
String |
getUsername() |
int |
hashCode()
This implementation returns the hash code of the underlying URL reference.
|
boolean |
hasURL() |
boolean |
isDirectory() |
Collection<org.kie.api.io.Resource> |
listResources() |
void |
readExternal(ObjectInput in) |
void |
setBasicAuthentication(String basicAuthentication) |
void |
setPassword(String password) |
void |
setUsername(String username) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
addCategory, getBytes, getCategories, getConfiguration, getDescription, getResourceType, getSourcePath, getTargetPath, setCategories, setConfiguration, setDescription, setResourceType, setSourcePath, setTargetPathclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddCategory, getBytes, getCategories, getConfiguration, getDescription, getResourceType, setCategories, setConfiguration, setDescription, setResourceTypepublic UrlResource()
public UrlResource(URL url)
public UrlResource(String path)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class BaseResourceIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class BaseResourceIOExceptionClassNotFoundExceptionpublic String getEncoding()
getEncoding in interface InternalResourcepublic String getBasicAuthentication()
public void setBasicAuthentication(String basicAuthentication)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public InputStream getInputStream() throws IOException
false,
mainly to avoid jar file locking on Windows.getInputStream in interface org.kie.api.io.ResourceIOExceptionURL.openConnection(),
URLConnection.setUseCaches(boolean),
URLConnection.getInputStream()public Reader getReader() throws IOException
getReader in interface org.kie.api.io.ResourceIOExceptionpublic URL getURL() throws IOException
getURL in interface InternalResourceIOExceptionpublic boolean hasURL()
hasURL in interface InternalResourcepublic File getFile() throws IOException
IOExceptionpublic boolean isDirectory()
isDirectory in interface InternalResourcepublic Collection<org.kie.api.io.Resource> listResources()
listResources in interface InternalResourcepublic boolean equals(Object obj)
equals in class BaseResourcepublic int hashCode()
hashCode in class BaseResourcepublic String toString()
toString in class BaseResourceCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.