Package fr.gouv.vitam.common.client
Class VitamRequestBuilder
- java.lang.Object
-
- fr.gouv.vitam.common.client.VitamRequestBuilder
-
public class VitamRequestBuilder extends java.lang.Object
-
-
Method Summary
-
-
-
Method Detail
-
get
public static VitamRequestBuilder get()
-
post
public static VitamRequestBuilder post()
-
put
public static VitamRequestBuilder put()
-
delete
public static VitamRequestBuilder delete()
-
head
public static VitamRequestBuilder head()
-
options
public static VitamRequestBuilder options()
-
runBeforeExecRequest
public void runBeforeExecRequest()
-
withBaseUrl
public VitamRequestBuilder withBaseUrl(java.lang.String url)
-
withNoBaseUrl
public VitamRequestBuilder withNoBaseUrl()
-
withJson
public VitamRequestBuilder withJson()
-
withOctet
public VitamRequestBuilder withOctet()
-
withJsonOctet
public VitamRequestBuilder withJsonOctet()
-
withJsonContentType
public VitamRequestBuilder withJsonContentType()
-
withXMLContentType
public VitamRequestBuilder withXMLContentType()
-
withContentType
public VitamRequestBuilder withContentType(javax.ws.rs.core.MediaType contentType)
-
withOctetContentType
public VitamRequestBuilder withOctetContentType()
-
withNoContentType
public VitamRequestBuilder withNoContentType()
-
withJsonAccept
public VitamRequestBuilder withJsonAccept()
-
withOctetAccept
public VitamRequestBuilder withOctetAccept()
-
withXMLAccept
public VitamRequestBuilder withXMLAccept()
-
withAccept
public VitamRequestBuilder withAccept(javax.ws.rs.core.MediaType accept)
-
withBody
public VitamRequestBuilder withBody(java.lang.Object body, java.lang.String failCheckBodyMessage)
-
withBody
public VitamRequestBuilder withBody(java.lang.Object body)
-
withBefore
public VitamRequestBuilder withBefore(java.lang.Runnable beforeExecRequest)
-
withHeaders
public VitamRequestBuilder withHeaders(javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> headers)
-
withHeader
public VitamRequestBuilder withHeader(java.lang.String key, java.lang.Object value)
-
withHeaderReplaceExisting
public VitamRequestBuilder withHeaderReplaceExisting(java.lang.String key, java.lang.Object value)
-
withHeaderIgnoreNull
public VitamRequestBuilder withHeaderIgnoreNull(java.lang.String key, java.lang.Object value)
-
withPath
public VitamRequestBuilder withPath(java.lang.String path)
-
withQueryParams
public VitamRequestBuilder withQueryParams(java.util.Map<java.lang.String,java.lang.String> queryParams)
-
withQueryParam
public VitamRequestBuilder withQueryParam(java.lang.String key, java.lang.String value)
-
withChunckedMode
public VitamRequestBuilder withChunckedMode(boolean chunckedMode)
-
getQueryParams
public java.util.Map<java.lang.String,java.lang.String> getQueryParams()
-
getHttpMethod
public java.lang.String getHttpMethod()
-
getContentType
public javax.ws.rs.core.MediaType getContentType()
-
getAccept
public javax.ws.rs.core.MediaType getAccept()
-
getBody
public java.lang.Object getBody()
-
getHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.Object> getHeaders()
-
getPath
public java.lang.String getPath()
-
isChunckedMode
public boolean isChunckedMode()
-
getBaseUrl
public java.lang.String getBaseUrl()
-
-