org.apache.archiva.web.rss
Class RssFeedServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.apache.archiva.web.rss.RssFeedServlet
- All Implemented Interfaces:
- Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class RssFeedServlet
- extends javax.servlet.http.HttpServlet
Servlet for handling rss feed requests.
- See Also:
- Serialized Form
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
|
private List<String> |
getObservableRepos(String principal)
|
void |
init(javax.servlet.ServletConfig servletConfig)
|
private boolean |
isAllowed(javax.servlet.http.HttpServletRequest req,
String repositoryId,
String groupId,
String artifactId)
Basic authentication. |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIME_TYPE
public static final String MIME_TYPE
- See Also:
- Constant Field Values
COULD_NOT_GENERATE_FEED_ERROR
private static final String COULD_NOT_GENERATE_FEED_ERROR
- See Also:
- Constant Field Values
COULD_NOT_AUTHENTICATE_USER
private static final String COULD_NOT_AUTHENTICATE_USER
- See Also:
- Constant Field Values
USER_NOT_AUTHORIZED
private static final String USER_NOT_AUTHORIZED
- See Also:
- Constant Field Values
log
private org.slf4j.Logger log
processor
private RssFeedProcessor processor
wac
private org.springframework.web.context.WebApplicationContext wac
userRepositories
private UserRepositories userRepositories
servletAuth
private ServletAuthenticator servletAuth
httpAuth
private org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator httpAuth
repositorySessionFactory
private RepositorySessionFactory repositorySessionFactory
- FIXME: this could be multiple implementations and needs to be configured.
RssFeedServlet
public RssFeedServlet()
init
public void init(javax.servlet.ServletConfig servletConfig)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
doGet
public void doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
throws javax.servlet.ServletException,
IOException
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
isAllowed
private boolean isAllowed(javax.servlet.http.HttpServletRequest req,
String repositoryId,
String groupId,
String artifactId)
throws org.apache.archiva.redback.users.UserNotFoundException,
org.apache.archiva.redback.policy.AccountLockedException,
org.apache.archiva.redback.authentication.AuthenticationException,
org.apache.archiva.redback.policy.MustChangePasswordException,
org.apache.archiva.redback.authorization.UnauthorizedException
- Basic authentication.
- Parameters:
req
- repositoryId
- TODOgroupId
- TODOartifactId
- TODO
- Returns:
-
- Throws:
org.apache.archiva.redback.users.UserNotFoundException
org.apache.archiva.redback.policy.AccountLockedException
org.apache.archiva.redback.authentication.AuthenticationException
org.apache.archiva.redback.policy.MustChangePasswordException
org.apache.archiva.redback.authorization.UnauthorizedException
getObservableRepos
private List<String> getObservableRepos(String principal)
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.