Class Http
- java.lang.Object
-
- co.elastic.apm.agent.impl.context.Http
-
- All Implemented Interfaces:
Recyclable
public class Http extends java.lang.Object implements Recyclable
-
-
Constructor Summary
Constructors Constructor Description Http()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFrom(Http other)UrlgetInternalUrl()java.lang.StringgetMethod()intgetStatusCode()java.lang.CharSequencegetUrl()URL used for the outgoing HTTP callbooleanhasContent()voidresetState()resets pooled object state so it can be reusedHttpwithMethod(java.lang.String method)HttpwithStatusCode(int statusCode)HttpwithUrl(java.lang.String url)URL used for the outgoing HTTP call
-
-
-
Method Detail
-
getUrl
public java.lang.CharSequence getUrl()
URL used for the outgoing HTTP call
-
getMethod
@Nullable public java.lang.String getMethod()
-
getStatusCode
public int getStatusCode()
-
withUrl
public Http withUrl(@Nullable java.lang.String url)
URL used for the outgoing HTTP call
-
withMethod
public Http withMethod(java.lang.String method)
-
withStatusCode
public Http withStatusCode(int statusCode)
-
resetState
public void resetState()
Description copied from interface:Recyclableresets pooled object state so it can be reused- Specified by:
resetStatein interfaceRecyclable
-
hasContent
public boolean hasContent()
-
copyFrom
public void copyFrom(Http other)
-
-