Package org.apache.cxf.transport.servlet
Class ServletController
- java.lang.Object
-
- org.apache.cxf.transport.servlet.ServletController
-
public class ServletController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTH_SERVICE_LISTstatic StringAUTH_SERVICE_LIST_REALMprotected StringauthServiceListPageRealmprotected static StringDEFAULT_LISTINGS_CLASSIFIERprotected DestinationRegistrydestinationRegistryprotected booleandisableAddressUpdatesprotected StringforcedBaseAddressprotected booleanisAuthServiceListPageprotected booleanisHideServiceListprotected javax.servlet.http.HttpServletserviceListGeneratorprotected StringserviceListRelativePathprotected javax.servlet.ServletConfigservletConfig
-
Constructor Summary
Constructors Constructor Description ServletController(DestinationRegistry destinationRegistry, javax.servlet.ServletConfig config, javax.servlet.http.HttpServlet serviceListGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanfilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res)protected voidgenerateNotFound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res)protected StringgetBaseURL(javax.servlet.http.HttpServletRequest request)voidinvoke(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res)booleaninvoke(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res, boolean returnErrors)voidinvokeDestination(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AbstractHTTPDestination d)protected voidsetBaseURLAttribute(javax.servlet.http.HttpServletRequest request)voidsetServiceListRelativePath(String relativePath)protected voidupdateDestination(javax.servlet.http.HttpServletRequest request, String base, AbstractHTTPDestination d)protected voidupdateDestination(javax.servlet.http.HttpServletRequest request, AbstractHTTPDestination d)
-
-
-
Field Detail
-
AUTH_SERVICE_LIST
public static final String AUTH_SERVICE_LIST
- See Also:
- Constant Field Values
-
AUTH_SERVICE_LIST_REALM
public static final String AUTH_SERVICE_LIST_REALM
- See Also:
- Constant Field Values
-
DEFAULT_LISTINGS_CLASSIFIER
protected static final String DEFAULT_LISTINGS_CLASSIFIER
- See Also:
- Constant Field Values
-
isHideServiceList
protected boolean isHideServiceList
-
isAuthServiceListPage
protected boolean isAuthServiceListPage
-
disableAddressUpdates
protected boolean disableAddressUpdates
-
authServiceListPageRealm
protected String authServiceListPageRealm
-
forcedBaseAddress
protected String forcedBaseAddress
-
serviceListRelativePath
protected String serviceListRelativePath
-
servletConfig
protected javax.servlet.ServletConfig servletConfig
-
destinationRegistry
protected DestinationRegistry destinationRegistry
-
serviceListGenerator
protected javax.servlet.http.HttpServlet serviceListGenerator
-
-
Constructor Detail
-
ServletController
public ServletController(DestinationRegistry destinationRegistry, javax.servlet.ServletConfig config, javax.servlet.http.HttpServlet serviceListGenerator)
-
-
Method Detail
-
setServiceListRelativePath
public void setServiceListRelativePath(String relativePath)
-
getBaseURL
protected String getBaseURL(javax.servlet.http.HttpServletRequest request)
-
setBaseURLAttribute
protected void setBaseURLAttribute(javax.servlet.http.HttpServletRequest request)
-
updateDestination
protected void updateDestination(javax.servlet.http.HttpServletRequest request, AbstractHTTPDestination d)
-
updateDestination
protected void updateDestination(javax.servlet.http.HttpServletRequest request, String base, AbstractHTTPDestination d)
-
filter
public boolean filter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
invoke
public void invoke(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
invoke
public boolean invoke(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res, boolean returnErrors) throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
invokeDestination
public void invokeDestination(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AbstractHTTPDestination d) throws javax.servlet.ServletException- Throws:
javax.servlet.ServletException
-
generateNotFound
protected void generateNotFound(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse res) throws IOException- Throws:
IOException
-
-