org.apache.stratos.cartridge.agent.registrant
Class PortMapping
java.lang.Object
org.apache.stratos.cartridge.agent.registrant.PortMapping
- All Implemented Interfaces:
- Serializable
public class PortMapping
- extends Object
- implements Serializable
This class provides the mapping between the actual port & proxy port of a Registrant
e.g. if the Registrant is serving HTTP requests on port 9763, and the requests to that port have
to be proxied via port 80 on the ELB, the primaryPort has to be specified as 9763
& proxyPort has to be specified as 80.
- See Also:
Registrant,
Serialized Form
PORT_TYPE_HTTP
public static final String PORT_TYPE_HTTP
- See Also:
- Constant Field Values
PORT_TYPE_HTTPS
public static final String PORT_TYPE_HTTPS
- See Also:
- Constant Field Values
PortMapping
public PortMapping()
getPrimaryPort
public int getPrimaryPort()
getProxyPort
public int getProxyPort()
setPrimaryPort
public void setPrimaryPort(int primaryPort)
setProxyPort
public void setProxyPort(int proxyPort)
getType
public String getType()
setType
public void setType(String type)
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.