|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object m.c.m.proxyma.context.ProxyFolderBean
public class ProxyFolderBean
This class is the bean that represents a remote destination for the reverse proxy engine. It is a data-object and countains all the configuration needed by the ProxymaCore to achieve its work.
NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.
Constructor Summary | |
---|---|
ProxyFolderBean(java.lang.String folderName,
java.lang.String destination,
ProxymaContext context)
Default constructor for this class it builds a destinationAsString. |
Method Summary | |
---|---|
java.lang.String |
getCacheProvider()
Standard getter method to obtain the active cache provider class name |
java.lang.String |
getDestinationAsString()
Standard getter method for the destination as String |
java.net.URL |
getDestinationAsURL()
Standard getter method for the destination as URL |
java.lang.String |
getFolderName()
Standard getter method for the folderName |
int |
getMaxPostSize()
Standard getter method for the max POST size attribute |
java.util.Collection<java.lang.String> |
getPreprocessors()
Obtain a collection of preprocessor class names registered for the proxy folder |
java.lang.String |
getRetriver()
Standard getter method to obtain the active resource retriver class name |
java.lang.String |
getSerializer()
Standard getter method to obtain the active serializer class name |
java.util.Collection<java.lang.String> |
getTransformers()
Obtain a collection of transformers class names registered for the proxy folder |
java.lang.String |
getURLEncodedFolderName()
Standard getter method for the URL encoded version of the folderName |
boolean |
isEnabled()
Standard getter method to know if the proxy folder is enabled |
void |
registerPreprocessor(java.lang.String preprocessorClassName)
Register a new preprocessor class name for this folder. |
void |
registerTransformer(java.lang.String transformerClassName)
Register a new transformer class name for this folder. |
void |
setCacheProvider(java.lang.String cacheProviderClassName)
Standard setter method to set the class name of the current active cache provider. |
void |
setDestination(java.lang.String destination)
Standard setter method for destinationAsString |
void |
setEnabled(boolean enabled)
Standard setter method to set the status of the proxy folder |
void |
setFolderName(java.lang.String newFolderName)
Standard setter method for folderName. |
void |
setMaxPostSize(int maxPostSize)
Standard setter method for the max POST size attribute |
void |
setRetriver(java.lang.String retriverClassName)
Standard setter method to set the class name of the current resurce retriver. |
void |
setSerializer(java.lang.String serializerClassName)
Standard setter method to set the class name of the current serializer. |
void |
unregisterPreprocessor(java.lang.String preprocessorClassName)
Unregister a preprocessor class name for this folder. |
void |
unregisterTransformer(java.lang.String transformerClassName)
Unregister a transformer class name for this folder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxyFolderBean(java.lang.String folderName, java.lang.String destination, ProxymaContext context) throws org.apache.commons.lang.NullArgumentException, java.lang.IllegalArgumentException, java.io.UnsupportedEncodingException
FolderName
- the path (and name) of the proxy folder.destinationAsString
- the destinationAsString URI to masqueradecontext
- the proxyma context where to get logger settings.
org.apache.commons.lang.NullArgumentException
- if some parameter is null
java.lang.IllegalArgumentException
- if the folder name or the destinationAsString parameter are invalid or malformed
java.io.UnsupportedEncodingException
- if the default encoding charset specified on the configuration is not supported.Method Detail |
---|
public java.lang.String getFolderName()
public java.lang.String getURLEncodedFolderName()
public void setFolderName(java.lang.String newFolderName) throws org.apache.commons.lang.NullArgumentException, java.lang.IllegalArgumentException, java.io.UnsupportedEncodingException
folderName
- the folder name to set
org.apache.commons.lang.NullArgumentException
- if some parameter is null
java.lang.IllegalArgumentException
- if the folder name is not valid
java.io.UnsupportedEncodingException
- if the default encoding charset specified on the configuration is not supported.public java.lang.String getDestinationAsString()
public java.net.URL getDestinationAsURL()
public void setDestination(java.lang.String destination)
destinationAsString
- the remote destinationAsString for this folder
org.apache.commons.lang.NullArgumentException
- if some parameter is null
java.lang.IllegalArgumentException
- if the destinationAsString parameter is a malformed URLpublic int getMaxPostSize()
public void setMaxPostSize(int maxPostSize)
the
- new maximum accepted size for POST operationspublic boolean isEnabled()
public void setEnabled(boolean enabled)
true
- enabled the folder, false disables itpublic java.lang.String getCacheProvider()
public void setCacheProvider(java.lang.String cacheProviderClassName)
the
- class name of the new cache provider.public java.lang.String getRetriver()
public void setRetriver(java.lang.String retriverClassName)
the
- class name of the new resource retriver.public java.lang.String getSerializer()
public void setSerializer(java.lang.String serializerClassName)
the
- class name of the new serializer.public void registerPreprocessor(java.lang.String preprocessorClassName)
preprocessorClassName
- the name of the class that implements the preprocessor to registerpublic void unregisterPreprocessor(java.lang.String preprocessorClassName)
preprocessorClassName
- the name of the class that implements the preprocessor to removepublic java.util.Collection<java.lang.String> getPreprocessors()
public void registerTransformer(java.lang.String transformerClassName)
transformerClassName
- the name of the class that implements the transformer to registerpublic void unregisterTransformer(java.lang.String transformerClassName)
transformerClassName
- the name of the class that implements the transformer to removepublic java.util.Collection<java.lang.String> getTransformers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |