public class RssFeedServlet extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
private static String |
COULD_NOT_AUTHENTICATE_USER |
private static String |
COULD_NOT_GENERATE_FEED_ERROR |
private org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator |
httpAuth |
private org.slf4j.Logger |
log |
static String |
MIME_TYPE |
private RssFeedProcessor |
newArtifactsprocessor |
private RssFeedProcessor |
newVersionsprocessor |
private RepositorySessionFactory |
repositorySessionFactory
FIXME: this could be multiple implementations and needs to be configured.
|
private ServletAuthenticator |
servletAuth |
private static String |
USER_NOT_AUTHORIZED |
private UserRepositories |
userRepositories |
private org.springframework.web.context.WebApplicationContext |
wac |
| Constructor and Description |
|---|
RssFeedServlet() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String MIME_TYPE
private static final String COULD_NOT_GENERATE_FEED_ERROR
private static final String COULD_NOT_AUTHENTICATE_USER
private static final String USER_NOT_AUTHORIZED
private org.slf4j.Logger log
private org.springframework.web.context.WebApplicationContext wac
private UserRepositories userRepositories
private ServletAuthenticator servletAuth
private org.apache.archiva.redback.integration.filter.authentication.HttpAuthenticator httpAuth
private RssFeedProcessor newArtifactsprocessor
private RssFeedProcessor newVersionsprocessor
private RepositorySessionFactory repositorySessionFactory
public RssFeedServlet()
public void init(javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws javax.servlet.ServletException, IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionprivate 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
req - repositoryId - TODOgroupId - TODOartifactId - TODOorg.apache.archiva.redback.users.UserNotFoundExceptionorg.apache.archiva.redback.policy.AccountLockedExceptionorg.apache.archiva.redback.authentication.AuthenticationExceptionorg.apache.archiva.redback.policy.MustChangePasswordExceptionorg.apache.archiva.redback.authorization.UnauthorizedExceptionprivate List<String> getObservableRepos(String principal)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.