mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Deployment HTTP adapter was putting commas in the port number
Replace some instances of the word "FSR" git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@15120 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,11 +21,11 @@
|
|||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- Transport adapters to communicate with remote File System Receivers -->
|
<!-- Transport adapters to communicate with remote File System Receivers -->
|
||||||
<!-- Communicate with an FSR over RMI - Default method for Alfresco-->
|
<!-- Communicate with an Deployment Server over RMI - Default method for Alfresco-->
|
||||||
<bean id="rmiFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI">
|
<bean id="rmiFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI">
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- communicate with an FSR over RMI with the content encrypted -->
|
<!-- communicate with an Deployment Server over RMI with the content encrypted -->
|
||||||
<bean id="encryptedRMIFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI">
|
<bean id="encryptedRMIFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI">
|
||||||
<property name="transformers">
|
<property name="transformers">
|
||||||
<list>
|
<list>
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- communicate with an FSR over RMI with the content compressed then encrypted -->
|
<!-- communicate with an Deployment Server over RMI with the content compressed then encrypted -->
|
||||||
<bean id="compressEncryptedRMIFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI">
|
<bean id="compressEncryptedRMIFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterRMI">
|
||||||
<property name="transformers">
|
<property name="transformers">
|
||||||
<list>
|
<list>
|
||||||
@@ -44,10 +44,10 @@
|
|||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<!-- how to communicate with an FSR over Spring HTTP -->
|
<!-- how to communicate with an Deployment Server over Spring HTTP -->
|
||||||
<bean id="springHttpFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterSpringHTTP">
|
<bean id="springHttpFSRAdapter" class="org.alfresco.repo.deploy.DeploymentReceiverTransportAdapterSpringHTTP">
|
||||||
<property name="urlPattern">
|
<property name="urlPattern">
|
||||||
<value>http://{1}:{2}/alfrescoFSR/deployment</value>
|
<value>http://{0}:{1}/ADSR/deployment</value>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
|
@@ -39,16 +39,16 @@ public class DeploymentReceiverTransportAdapterHessian extends AbstractDeploymen
|
|||||||
/**
|
/**
|
||||||
* The pattern to use when constructing the URL from hostname and port
|
* The pattern to use when constructing the URL from hostname and port
|
||||||
*
|
*
|
||||||
* eg http://localhost:8080/FSR/deployment
|
* eg http://localhost:8080/ADSR/deployment
|
||||||
*/
|
*/
|
||||||
private String urlPattern = "http://{1}:{2}/FSR/deployment";
|
private String urlPattern = "http://{0}:{1}/ADSR/deployment";
|
||||||
|
|
||||||
public DeploymentReceiverTransport getTransport(String host,
|
public DeploymentReceiverTransport getTransport(String host,
|
||||||
int port, int version, String srcPath)
|
int port, int version, String srcPath)
|
||||||
{
|
{
|
||||||
MessageFormat f = new MessageFormat(urlPattern);
|
MessageFormat f = new MessageFormat(getUrlPattern());
|
||||||
Object[] objs = { host, port };
|
Object[] objs = { host, Integer.toString(port) };
|
||||||
String URL = f.format(objs);
|
String URL = f.format(objs);
|
||||||
|
|
||||||
// Code to use Hessian transport provided via Spring
|
// Code to use Hessian transport provided via Spring
|
||||||
HessianProxyFactoryBean factory = new HessianProxyFactoryBean();
|
HessianProxyFactoryBean factory = new HessianProxyFactoryBean();
|
||||||
|
@@ -38,17 +38,17 @@ import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;
|
|||||||
public class DeploymentReceiverTransportAdapterSpringHTTP extends AbstractDeploymentReceiverTransportAdapter implements DeploymentReceiverTransportAdapter {
|
public class DeploymentReceiverTransportAdapterSpringHTTP extends AbstractDeploymentReceiverTransportAdapter implements DeploymentReceiverTransportAdapter {
|
||||||
/**
|
/**
|
||||||
* The pattern to use when constructing the URL from hostname and port
|
* The pattern to use when constructing the URL from hostname and port
|
||||||
* {1} substitues for hostname {2} substitues for port
|
* {0} substitues for hostname {1} substitues for port
|
||||||
* Default format results in the following URL http://localhost:8080/alfrescoFSR/deployment
|
* Default format results in the following URL http://localhost:8080/ADSR/deployment
|
||||||
*/
|
*/
|
||||||
private String urlPattern = "http://{1}:{2}/alfrescoFSR/deployment";
|
private String urlPattern = "http://{0}:{1}/ADSR/deployment";
|
||||||
|
|
||||||
public DeploymentReceiverTransport getTransport(String host,
|
public DeploymentReceiverTransport getTransport(String host,
|
||||||
int port, int version, String srcPath)
|
int port, int version, String srcPath)
|
||||||
{
|
{
|
||||||
|
|
||||||
MessageFormat f = new MessageFormat(getUrlPattern());
|
MessageFormat f = new MessageFormat(getUrlPattern());
|
||||||
Object[] objs = { host, port };
|
Object[] objs = { host, Integer.toString(port) };
|
||||||
String URL = f.format(objs);
|
String URL = f.format(objs);
|
||||||
|
|
||||||
// Code to use HTTP spring transport
|
// Code to use HTTP spring transport
|
||||||
|
Reference in New Issue
Block a user