org.apache.stratos.cartridge.agent.registrant
Class PortMapping

java.lang.Object
  extended by 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

Field Summary
static String PORT_TYPE_HTTP
           
static String PORT_TYPE_HTTPS
           
 
Constructor Summary
PortMapping()
           
 
Method Summary
 boolean equals(Object o)
           
 int getPrimaryPort()
           
 int getProxyPort()
           
 String getType()
           
 int hashCode()
           
 void setPrimaryPort(int primaryPort)
           
 void setProxyPort(int proxyPort)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

PortMapping

public PortMapping()
Method Detail

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.