public class SimpleResourceBuilder extends Object implements ResourceBuilder
| Constructor and Description |
|---|
SimpleResourceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BasicContainer |
basicContainer() |
ResourceBuilder |
body(String body) |
ResourceBuilder |
contentLocation(String contentLocation) |
ResourceBuilder |
contentType(String contentType) |
protected BasicContainer |
createBasicContainer(String contentLocation,
String contentType,
ResourceType type,
byte[] body) |
ResourceBuilder |
entityBody(byte[] body) |
RdfSource |
rdfSource() |
ResourceFile |
resource() |
ResourceBuilder |
type(ResourceType type) |
public ResourceBuilder type(ResourceType type)
type in interface ResourceBuilderpublic ResourceBuilder contentType(String contentType)
contentType in interface ResourceBuilderpublic ResourceBuilder contentLocation(String contentLocation)
contentLocation in interface ResourceBuilderpublic ResourceBuilder entityBody(byte[] body)
entityBody in interface ResourceBuilderpublic ResourceBuilder body(String body)
body in interface ResourceBuilderpublic ResourceFile resource()
resource in interface ResourceBuilderprotected BasicContainer createBasicContainer(String contentLocation, String contentType, ResourceType type, byte[] body)
public BasicContainer basicContainer()
basicContainer in interface ResourceBuilderpublic RdfSource rdfSource()
rdfSource in interface ResourceBuilderCopyright © 2016. All rights reserved.