@Valid public class TechnicalHeaderContext extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
TechnicalHeaderContext.Builder
Class implements builder to create a new instance of class
TechnicalHeaderContext. |
| Modifier | Constructor and Description |
|---|---|
protected |
TechnicalHeaderContext()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
TechnicalHeaderContext(TechnicalHeaderContext.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomHeader(String pHeaderName,
String pHeaderValue)
Method adds the passed values as custom headers.
|
static TechnicalHeaderContext.Builder |
builder()
Method returns a new builder.
|
static TechnicalHeaderContext.Builder |
builder(String pReseller)
Method creates a new builder and initializes it with the passed attributes.
|
static TechnicalHeaderContext.Builder |
builder(TechnicalHeaderContext pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
Map<String,String> |
getCustomHeaders()
Method returns map with all custom headers that were added
|
String |
getReseller()
Method returns attribute
reseller. |
void |
setReseller(String pReseller)
Method sets attribute
reseller. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected TechnicalHeaderContext()
protected TechnicalHeaderContext(TechnicalHeaderContext.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static TechnicalHeaderContext.Builder builder()
TechnicalHeaderContext.Builder New builder that can be used to create new TechnicalHeaderContext objects.public static TechnicalHeaderContext.Builder builder(TechnicalHeaderContext pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.TechnicalHeaderContext.Builder New builder that can be used to create new TechnicalHeaderContext objects. The method never
returns null.public static TechnicalHeaderContext.Builder builder(String pReseller)
public void setReseller(String pReseller)
reseller.pReseller - Value to which reseller should be set.public Map<String,String> getCustomHeaders()
Map Map with all custom headers. The method never returns null. The returned map is unmodifiable.public void addCustomHeader(String pHeaderName, String pHeaderValue)
pHeaderName - Name of the HTTP header. The parameter must not be null,pHeaderValue - Value of the http header the parameter may be null.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.