|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.record.field.FieldDefinition
gr.uoa.di.madgik.grs.record.field.URLFieldDefinition
public class URLFieldDefinition
The FieldDefinition
implementation for URLField
Field Summary | |
---|---|
static java.lang.String |
DefaultCharset
The default charset used to encode the payload for transport. |
static IBuffer.TransportDirective |
DefaultDirective
The default transport directive currently set to IBuffer.TransportDirective.Full |
static java.lang.String |
DefaultMimeType
The default MIME type currently set to message/external-body |
Fields inherited from class gr.uoa.di.madgik.grs.record.field.FieldDefinition |
---|
DefaultChunkSize, DefaultDoCompress |
Constructor Summary | |
---|---|
URLFieldDefinition()
Creates a new instance |
|
URLFieldDefinition(java.lang.String name)
Creates a new instance |
Method Summary | |
---|---|
void |
extendDeflate(java.io.DataOutput out)
Method to be implemented by class extenders to deflate additional information |
boolean |
extendEquals(java.lang.Object obj)
Method to be implemented by extenders to check if two instances are equal |
void |
extendFromXML(org.w3c.dom.Element element)
|
void |
extendInflate(java.io.DataInput in)
Method to be implemented by the class extenders to inflate additional information previously deflated |
void |
extendToXML(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
|
java.lang.String |
getCharset()
Retrieves the charset name used to encode the payload |
IBuffer.TransportDirective |
getTransportDirective()
Retrieves the transport directive to be used during transfer |
void |
setCharset(java.lang.String charset)
The charset name to use to encode the payload |
void |
setTransportDirective(IBuffer.TransportDirective directive)
Sets the transport directive to be used during transfer |
Methods inherited from class gr.uoa.di.madgik.grs.record.field.FieldDefinition |
---|
deflate, equals, fromXML, getChunkSize, getMimeType, getName, inflate, isCompress, setChunkSize, setCompress, setMimeType, setName, toXML |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DefaultMimeType
public static final IBuffer.TransportDirective DefaultDirective
IBuffer.TransportDirective.Full
public static final java.lang.String DefaultCharset
Constructor Detail |
---|
public URLFieldDefinition()
public URLFieldDefinition(java.lang.String name)
name
- the field definition nameMethod Detail |
---|
public void setCharset(java.lang.String charset)
charset
- the charset namepublic java.lang.String getCharset()
public void setTransportDirective(IBuffer.TransportDirective directive)
The set IBuffer.TransportDirective
is not affected. Only the default IBuffer.TransportDirective.Full
is supported
setTransportDirective
in class FieldDefinition
directive
- the directive to be usedFieldDefinition.setTransportDirective(gr.uoa.di.madgik.grs.buffer.IBuffer.TransportDirective)
public IBuffer.TransportDirective getTransportDirective()
The default IBuffer.TransportDirective.Full
is returned
getTransportDirective
in class FieldDefinition
FieldDefinition.getTransportDirective()
public boolean extendEquals(java.lang.Object obj)
extendEquals
in class FieldDefinition
obj
- the instance to check for equality
FieldDefinition.extendEquals(java.lang.Object)
public void extendDeflate(java.io.DataOutput out) throws GRS2RecordSerializationException
extendDeflate
in class FieldDefinition
out
- the stream to deflate to
GRS2RecordSerializationException
- A serialization error occurredFieldDefinition.extendDeflate(java.io.DataOutput)
public void extendInflate(java.io.DataInput in) throws GRS2RecordSerializationException
extendInflate
in class FieldDefinition
in
- the stream to inflate from
GRS2RecordSerializationException
- A deserialization error occurredFieldDefinition.extendInflate(java.io.DataInput)
public void extendToXML(org.w3c.dom.Document doc, org.w3c.dom.Element element) throws GRS2RecordSerializationException
extendToXML
in class FieldDefinition
GRS2RecordSerializationException
public void extendFromXML(org.w3c.dom.Element element) throws GRS2RecordSerializationException
extendFromXML
in class FieldDefinition
GRS2RecordSerializationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |