public String getWebAlias ( ) { String contextPath = context . getProperty ( BaseWebappServlet . ALIAS ) ; if ( contextPath == null ) contextPath = context . getProperty ( BaseWebappServlet . ALIAS . substring ( BaseWebappServlet . PROPERTY_PREFIX . length ( ) ) ) ; if ( contextPath == null ) contextPath = this . getProperty ( BaseWebappServlet . ALIAS ) ; if ( contextPath == null ) contextPath = this . getProperty ( BaseWebappServlet . ALIAS . substring ( BaseWebappServlet . PROPERTY_PREFIX . length ( ) ) ) ; if ( contextPath == null ) { contextPath = this . getServicePid ( ) ; if ( contextPath . lastIndexOf ( ' ' ) != - 1 ) contextPath = contextPath . substring ( contextPath . lastIndexOf ( ' ' ) + 1 ) ; } if ( ! contextPath . startsWith ( "/" ) ) contextPath = "/" + contextPath ; return contextPath ; }
Get the web alias for this servlet .