Class AbstractHttpGetRequestProcessor
- java.lang.Object
-
- org.wso2.carbon.mediation.transport.handlers.AbstractHttpGetRequestProcessor
-
- Direct Known Subclasses:
Axis2HttpGetRequestProcessor
,PassThroughNHttpGetProcessor
public abstract class AbstractHttpGetRequestProcessor extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.axis2.context.ConfigurationContext
cfgCtx
static QName
CLASS_QN
static String
CONTENT_TYPE
static String
FAVICON_ICO
static String
FAVICON_ICO_URL
protected Map<String,org.wso2.carbon.core.transports.HttpGetRequestProcessor>
getRequestProcessors
static String
HOST_NAME
static QName
ITEM_QN
static String
LOCALHOST
static String
TEXT_HTML
static String
WSO2_LOADBALANCER_SYS_PROPERTY
-
Constructor Summary
Constructors Constructor Description AbstractHttpGetRequestProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getServiceName(String uri)
Returns the service name.protected String
getServicePath()
protected String
getServicesHTML(String prefix)
Returns the HTML text for the list of services deployed.void
handleException(String msg, Exception e)
void
init(org.apache.axis2.context.ConfigurationContext configurationContext)
protected void
populateGetRequestProcessors()
-
-
-
Field Detail
-
ITEM_QN
public static final QName ITEM_QN
-
CLASS_QN
public static final QName CLASS_QN
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
TEXT_HTML
public static final String TEXT_HTML
- See Also:
- Constant Field Values
-
FAVICON_ICO
public static final String FAVICON_ICO
- See Also:
- Constant Field Values
-
FAVICON_ICO_URL
public static final String FAVICON_ICO_URL
- See Also:
- Constant Field Values
-
LOCALHOST
public static final String LOCALHOST
- See Also:
- Constant Field Values
-
HOST_NAME
public static final String HOST_NAME
- See Also:
- Constant Field Values
-
WSO2_LOADBALANCER_SYS_PROPERTY
public static final String WSO2_LOADBALANCER_SYS_PROPERTY
- See Also:
- Constant Field Values
-
getRequestProcessors
protected Map<String,org.wso2.carbon.core.transports.HttpGetRequestProcessor> getRequestProcessors
-
cfgCtx
protected org.apache.axis2.context.ConfigurationContext cfgCtx
-
-
Method Detail
-
init
public void init(org.apache.axis2.context.ConfigurationContext configurationContext) throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
populateGetRequestProcessors
protected void populateGetRequestProcessors() throws org.apache.axis2.AxisFault
- Throws:
org.apache.axis2.AxisFault
-
getServicesHTML
protected String getServicesHTML(String prefix)
Returns the HTML text for the list of services deployed. This can be delegated to another Class as well where it will handle more options of GET messages.- Parameters:
prefix
- to be used for the Service names- Returns:
- the HTML to be displayed as a String
-
getServiceName
protected String getServiceName(String uri)
Returns the service name.- Parameters:
uri
- HttpRequest uri- Returns:
- service name as a String
-
getServicePath
protected String getServicePath()
-
-