public class HttpPostHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected ExtendedM2RepoService |
m2RepoService |
Constructor and Description |
---|
HttpPostHelper() |
Modifier and Type | Method and Description |
---|---|
protected void |
deploy(GAV gav,
InputStream jarStream) |
protected FormData |
extractFormData(javax.servlet.http.HttpServletRequest request) |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Posting accepts content of various types -
may be an attachment for an asset, or perhaps a repository import to process.
|
protected String |
upload(FormData formData) |
protected String |
uploadJar(FormData formData) |
protected String |
uploadPom(FormData formData) |
@Inject protected ExtendedM2RepoService m2RepoService
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
protected FormData extractFormData(javax.servlet.http.HttpServletRequest request) throws IOException
IOException
protected String upload(FormData formData) throws IOException
IOException
protected String uploadJar(FormData formData) throws IOException
IOException
protected void deploy(GAV gav, InputStream jarStream)
protected String uploadPom(FormData formData) throws IOException
IOException
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.