Class SpecialContext
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Context
-
- com.anaptecs.jeaf.junit.openapi.base.SpecialContext
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class SpecialContext extends Context
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpecialContext.BuilderClass implements builder to create a new instance of classSpecialContext.
-
Constructor Summary
Constructors Modifier Constructor Description protectedSpecialContext()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedSpecialContext(SpecialContext.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpecialContext.Builderbuilder()Method returns a new builder.static SpecialContext.Builderbuilder(SpecialContext pObject)Method creates a new builder and initialize it with the data from the passed object.static SpecialContext.Builderbuilder(java.lang.String pAccessToken, java.util.Locale pLanguage, long pResellerID, long pPathParam, java.lang.String pQueryParam, java.lang.String pSpecificHeader)Method creates a new builder and initializes it with the passed attributes.java.lang.StringgetSpecificHeader()Method returns attributespecificHeader.voidsetSpecificHeader(java.lang.String pSpecificHeader)Method sets attributespecificHeader.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.-
Methods inherited from class com.anaptecs.jeaf.junit.openapi.base.Context
addCustomHeader, builder, builder, getAccessToken, getCustomHeaders, getLanguage, getPathParam, getQueryParam, getResellerID, setAccessToken, setLanguage, setPathParam, setQueryParam, setResellerID
-
-
-
-
Constructor Detail
-
SpecialContext
protected SpecialContext()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
SpecialContext
protected SpecialContext(SpecialContext.Builder pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
builder
public static SpecialContext.Builder builder()
Method returns a new builder.- Returns:
SpecialContext.BuilderNew builder that can be used to create new SpecialContext objects.
-
builder
public static SpecialContext.Builder builder(SpecialContext pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
SpecialContext.BuilderNew builder that can be used to create new SpecialContext objects. The method never returns null.
-
builder
public static SpecialContext.Builder builder(java.lang.String pAccessToken, java.util.Locale pLanguage, long pResellerID, long pPathParam, java.lang.String pQueryParam, java.lang.String pSpecificHeader)
Method creates a new builder and initializes it with the passed attributes.
-
getSpecificHeader
public java.lang.String getSpecificHeader()
Method returns attributespecificHeader.- Returns:
StringValue to whichspecificHeaderis set.
-
setSpecificHeader
public void setSpecificHeader(java.lang.String pSpecificHeader)
Method sets attributespecificHeader.- Parameters:
pSpecificHeader- Value to whichspecificHeadershould be set.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.- Overrides:
toStringBuilderin classContext- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
-