|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.resource.ResourceProvider
org.openbp.common.resource.HttpResourceProvider
public class HttpResourceProvider
Provides access to resources using a HTTP connection.
| Field Summary |
|---|
| Fields inherited from class org.openbp.common.resource.ResourceProvider |
|---|
PROTOCOL_PREFIX_SEPARATOR, resourceLoader |
| Constructor Summary | |
|---|---|
protected |
HttpResourceProvider(int priority,
org.springframework.core.io.ResourceLoader resourceLoader,
java.lang.String protocol,
java.lang.String host,
java.lang.String port)
Constructor. |
| Method Summary | |
|---|---|
java.lang.String |
applyPrefix(java.lang.String resourceLocation)
Applies the protocl prefix to the given resource location. |
java.lang.String |
getHost()
Gets the host (e. g. |
java.lang.String |
getPort()
Gets the port (e. g. "8080"). |
java.lang.String |
getProtocol()
Gets the protocol (e. g. |
org.springframework.core.io.Resource |
getResource(java.lang.String resourceLocation)
Gets a resource. |
java.lang.String |
getUrlPrefix()
|
void |
setHost(java.lang.String host)
Sets the host (e. g. |
void |
setPort(java.lang.String port)
Sets the port (e. g. "8080"). |
void |
setProtocol(java.lang.String protocol)
Sets the protocol (e. g. |
java.lang.String |
toString()
|
| Methods inherited from class org.openbp.common.resource.ResourceProvider |
|---|
getPrefix, getPriority, getResourceLoader, hasPrefix, setPriority, setResourceLoader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected HttpResourceProvider(int priority,
org.springframework.core.io.ResourceLoader resourceLoader,
java.lang.String protocol,
java.lang.String host,
java.lang.String port)
priority - Priority of the providerresourceLoader - Resource loaderprotocol - Protocol (e. g. "http")host - Host (e. g. "localhost")port - Port (e. g. "8080")| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getUrlPrefix()
public org.springframework.core.io.Resource getResource(java.lang.String resourceLocation)
throws ResourceMgrException
ResourceProvider
getResource in class ResourceProviderresourceLocation - Resource location
ResourceMgrException - If the provider is unable to find the specified resourcepublic java.lang.String applyPrefix(java.lang.String resourceLocation)
applyPrefix in class ResourceProviderresourceLocation - Resource
public java.lang.String getProtocol()
public void setProtocol(java.lang.String protocol)
public java.lang.String getHost()
public void setHost(java.lang.String host)
public java.lang.String getPort()
public void setPort(java.lang.String port)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||