Package org.apache.sling.servlets.post.impl.helper

# Klasse RequestProperty

java.lang.Object
org.apache.sling.servlets.post.impl.helper.RequestProperty

public class RequestProperty extends Object
Encapsulates all infos from the respective request parameters that are needed to create the repository property

## Feldübersicht

Felder
Modifizierer und Typ
Feld
Beschreibung
`static final String`
`DEFAULT_IGNORE`
`static final String`
`DEFAULT_NULL`

## Konstruktorübersicht

Konstruktoren
Konstruktor
Beschreibung
`RequestProperty(String path)`

## Methodenübersicht

Modifizierer und Typ
Methode
Beschreibung
`Chunk`
`getChunk()`
`org.apache.sling.api.request.RequestParameter[]`
`getDefaultValues()`
`String`
`getName()`
`String`
`getParentPath()`
`String`
`getPath()`
`String`
`getRepositorySource()`
get the source of a copy or move operation
`String[]`
`getStringValues()`
Returns the assembled string array out of the provided request values and default values.
`String`
`getTypeHint()`
`org.apache.sling.api.request.RequestParameter[]`
`getValues()`
`boolean`
`hasMultiValueTypeHint()`
`boolean`
`hasRepositoryCopySource()`
if this is the source of a copy action
`boolean`
`hasRepositoryMoveSource()`
If this is a target of a move operation
`boolean`
`hasValues()`
`boolean`
`isChunkUpload()`
it this is a chunk upload?
`boolean`
`isDelete()`
Determine the deletion status of this item
`boolean`
`isFileUpload()`
`boolean`
`isPatch()`
determines if this property is handled as multi-value property
`boolean`
`providesValue()`
Checks if this property provides any values. this is the case if one of the values is not empty or if the default handling is not 'ignore'
`void`
`setChunk(Chunk chunk)`
`void`
`setDefaultValues(org.apache.sling.api.request.RequestParameter[] defaultValues)`
`void`
`setDelete(boolean isDelete)`
Specifies whether this property should be deleted before any new content is to be set according to the values stored.
`void`
`setIgnoreBlanks(boolean b)`
`void`
`setPatch(boolean b)`
`void`
`setRepositorySource(String sourcePath, boolean isMove)`
Sets the path of the repository item from which the content for this property is to be copied or moved.
`void`
`setTypeHintValue(String typeHint)`
`void`
`setUseDefaultWhenMissing(boolean b)`
`void`
`setValues(org.apache.sling.api.request.RequestParameter[] values)`

### Von Klasse geerbte Methoden java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

## Felddetails

### DEFAULT_IGNORE

public static final String DEFAULT_IGNORE

Siehe auch:
  - Konstantenfeldwerte

### DEFAULT_NULL

public static final String DEFAULT_NULL

Siehe auch:
  - Konstantenfeldwerte

## Konstruktordetails

### RequestProperty

public RequestProperty(String path)

## Methodendetails

### getTypeHint

public String getTypeHint()

### hasMultiValueTypeHint

public boolean hasMultiValueTypeHint()

### setTypeHintValue

public void setTypeHintValue(String typeHint)

### getPath

public String getPath()

### getName

public String getName()

### getParentPath

public String getParentPath()

### hasValues

public boolean hasValues()

### getValues

public org.apache.sling.api.request.RequestParameter[] getValues()

### setValues

public void setValues(org.apache.sling.api.request.RequestParameter[] values)

### getDefaultValues

public org.apache.sling.api.request.RequestParameter[] getDefaultValues()

### setDefaultValues

public void setDefaultValues(org.apache.sling.api.request.RequestParameter[] defaultValues)

### isFileUpload

public boolean isFileUpload()

### providesValue

public boolean providesValue()
Checks if this property provides any values. this is the case if one of the values is not empty or if the default handling is not 'ignore'

Gibt zurück:
  `true` if this property provides values

### getStringValues

public String[] getStringValues()
Returns the assembled string array out of the provided request values and default values.

Gibt zurück:
  a String array or `null` if the property needs to be removed.

### setDelete

public void setDelete(boolean isDelete)
Specifies whether this property should be deleted before any new content is to be set according to the values stored.

Parameter:
  `isDelete` - `true` if the repository item described by this is to be deleted before any other operation.

### isDelete

public boolean isDelete()
Determine the deletion status of this item

Gibt zurück:
  `true` if the repository item described by this is to be deleted before setting new content to it.

### setRepositorySource

public void setRepositorySource(String sourcePath, boolean isMove)
Sets the path of the repository item from which the content for this property is to be copied or moved. The path may be relative in which case it will be resolved relative to the absolute path of this property.

Parameter:
  `sourcePath` - The path of the repository item to get the content from
  `isMove` - `true` if the source content is to be moved, otherwise the source content is copied from the repository item.

### hasRepositoryMoveSource

public boolean hasRepositoryMoveSource()
If this is a target of a move operation

Gibt zurück:
  `true` if the content of this property is to be set by moving content from another repository item.
Siehe auch:
  - `getRepositorySource()`

### hasRepositoryCopySource

public boolean hasRepositoryCopySource()
if this is the source of a copy action

Gibt zurück:
  `true` if the content of this property is to be set by copying content from another repository item.
Siehe auch:
  - `getRepositorySource()`

### getRepositorySource

public String getRepositorySource()
get the source of a copy or move operation

Gibt zurück:
  the absolute path of the repository item from which the content for this property is to be copied or moved.
Siehe auch:
  - `hasRepositoryCopySource()`
  - `hasRepositoryMoveSource()`
  - `setRepositorySource(String, boolean)`

### setIgnoreBlanks

public void setIgnoreBlanks(boolean b)

### setUseDefaultWhenMissing

public void setUseDefaultWhenMissing(boolean b)

### setPatch

public void setPatch(boolean b)

### isPatch

public boolean isPatch()
determines if this property is handled as multi-value property

Gibt zurück:
  whether this property is to be handled as a multi-value property seen as set.

### isChunkUpload

public boolean isChunkUpload()
it this is a chunk upload?

Gibt zurück:
  true if request is chunk upload.

### getChunk

public Chunk getChunk()

### setChunk

public void setChunk(Chunk chunk)