Class Request
java.lang.Object
de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Request
- All Implemented Interfaces:
Content
- Direct Known Subclasses:
HttpContent,JsonRequest
Individual request or response inside the bach request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final de.fraunhofer.iosb.ilt.frostserver.path.Versionprotected Stringprotected de.fraunhofer.iosb.ilt.frostserver.model.core.Idprotected final StringBuilderprotected booleanprotected Stringprotected HttpMethodprotected booleanFlag indicating there is a problem with the syntax of the content.protected Stringprotected final booleanprotected PrincipalBatch request user.protected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidde.fraunhofer.iosb.ilt.frostserver.model.core.IdgetData()Get the data in the http request.Get the list of error messages generating during parsing.Get the headers.Get the headers of the request inside the batch.getPath()Get the path part of the http request.booleanbooleanFlag indicating there were errors parsing the content.voidvoidsetContentId(String contentId) voidsetContentIdValue(de.fraunhofer.iosb.ilt.frostserver.model.core.Id contentIdValue) voidsetExecuteFailed(boolean executeFailed) voidsetLogIndent(String logIndent) Sets the indentation of log messages.voidsetMethod(HttpMethod method) voidabstract voidvoidsetUserPrincipal(Principal userPrincipal) voidupdateUsingContentIds(List<ContentIdPair> contentIds) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.fraunhofer.iosb.ilt.frostserver.plugin.batchprocessing.batch.Content
getContent
-
Field Details
-
logIndent
-
method
-
version
-
path
-
userPrincipal
Batch request user. -
headersOuter
-
headersInner
-
parseFailed
protected boolean parseFailedFlag indicating there is a problem with the syntax of the content. If this is a changeSet, then the entire changeSet will be discarded. -
executeFailed
protected boolean executeFailed -
errors
-
requireContentId
protected final boolean requireContentId -
contentId
-
contentIdValue
protected de.fraunhofer.iosb.ilt.frostserver.model.core.Id contentIdValue -
data
-
batchVersion
protected final de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion
-
-
Constructor Details
-
Request
protected Request(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion) -
Request
protected Request(de.fraunhofer.iosb.ilt.frostserver.path.Version batchVersion, boolean requireContentId)
-
-
Method Details
-
isParseFailed
public boolean isParseFailed()Description copied from interface:ContentFlag indicating there were errors parsing the content.- Specified by:
isParseFailedin interfaceContent- Returns:
- true if there were parse errors.
-
isExecuteFailed
public boolean isExecuteFailed() -
setExecuteFailed
public void setExecuteFailed(boolean executeFailed) -
getErrors
Description copied from interface:ContentGet the list of error messages generating during parsing. -
getMethod
-
setMethod
-
getPath
Get the path part of the http request.- Returns:
- the URL part of the http request.
-
setPath
-
getData
Get the data in the http request. This does not include the outer headers, command, nor inner headers.- Returns:
- The data in http request.
-
addData
-
getContentId
-
setContentId
-
getContentIdValue
public de.fraunhofer.iosb.ilt.frostserver.model.core.Id getContentIdValue() -
setContentIdValue
public void setContentIdValue(de.fraunhofer.iosb.ilt.frostserver.model.core.Id contentIdValue) -
getHttpHeaders
Get the headers of the request inside the batch. These are not the same as the batch headers.- Returns:
- the headers of the individual batch request.
-
getHeaders
Description copied from interface:ContentGet the headers. This will include the Content-Type header.- Specified by:
getHeadersin interfaceContent- Returns:
- the headers.
-
getUserPrincipal
-
setUserPrincipal
-
getVersion
-
setLogIndent
Description copied from interface:ContentSets the indentation of log messages. Since Content can be nested, this makes debug output better readable.- Specified by:
setLogIndentin interfaceContent- Parameters:
logIndent- the indentation of log messages.
-
updateUsingContentIds
-
setStatus
-
parseUrl
-