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.ServletExceptionIOExceptionprotected FormData extractFormData(javax.servlet.http.HttpServletRequest request) throws IOException
IOExceptionprotected String upload(FormData formData) throws IOException
IOExceptionprotected String uploadJar(FormData formData) throws IOException
IOExceptionprotected void deploy(GAV gav, InputStream jarStream)
protected String uploadPom(FormData formData) throws IOException
IOExceptionCopyright © 2012–2019 JBoss by Red Hat. All rights reserved.