public class URLField extends Field
| Constructor and Description |
|---|
URLField()
Creates a new instance
|
URLField(URL payload)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
extendDeflate(DataOutput out)
Method that needs to be implemented by the class extenders to deflate the information they keep
|
void |
extendDispose()
Method to be implemented by class extenders to dispose their internal state
|
void |
extendFromXML(Element element,
boolean reset) |
void |
extendInflate(DataInput in,
boolean reset)
Method that needs to be implemented by the
Field extenders to inflate their internal information |
protected void |
extendMakeLocal()
Method that needs to be implemented by the class extenders to reset any additional information concerning previous executed
transfers they keep and make the field behave as if it were local
|
void |
extendReceive(DataInput in,
IBuffer.TransportOverride override)
Method that needs to be implemented by the
Field extenders to receive their priveously send information |
void |
extendReceiveFromXML(Element element,
IBuffer.TransportOverride override) |
void |
extendSend(DataOutput out,
IBuffer.TransportOverride override)
Method that needs to be implemented by the class extenders to send the information they keep
|
void |
extendSendToXML(Document doc,
Element element,
IBuffer.TransportOverride override) |
void |
extendToXML(Document doc,
Element element) |
URLFieldDefinition |
getFieldDefinition()
|
InputStream |
getInputStream()
Provides an
InputStream over the locally available payload of the Field |
URL |
getPayload()
Retrieves the payload of the field
|
boolean |
isAvailable()
Method that needs to be implemented by class extenders to indicate in case of a remote field copy when the field is not
expecting any more data from its original instance.
|
void |
setPayload(URL payload)
Sets the payload of the field
|
bind, deflate, dispose, fromXML, fromXML, getDefinitionIndex, getMediatingInputStream, inflate, inflate, isRemoteCopy, makeAvailable, makeAvailable, makeLocal, prebind, receive, receiveFromXML, resolveTransportDirective, send, sendToXML, setDefinitionIndex, setRemoteCopy, toXMLpublic URLField()
public URLField(URL payload)
payload - the payload of the fieldpublic void setPayload(URL payload)
payload - public URL getPayload()
GRS2RecordExceptionpublic URLFieldDefinition getFieldDefinition() throws GRS2RecordDefinitionException
getFieldDefinition in class FieldGRS2RecordDefinitionException - if the Field is not bound to a Record or no usable definition has been foundField.getFieldDefinition()public boolean isAvailable()
isAvailable in class FieldField.isAvailable()public InputStream getInputStream() throws IOException
InputStream over the locally available payload of the FieldgetInputStream in class FieldIOException - The input stream could not be createdField.getInputStream()public void extendSend(DataOutput out, IBuffer.TransportOverride override) throws GRS2RecordSerializationException
extendSend in class Fieldout - the stream to send information tooverride - the IBuffer.TransportOverride directiveGRS2RecordSerializationException - There was a problem in the serializationField.extendSend(java.io.DataOutput, gr.uoa.di.madgik.grs.buffer.IBuffer.TransportOverride)public void extendReceive(DataInput in, IBuffer.TransportOverride override) throws GRS2RecordSerializationException
Field extenders to receive their priveously send informationextendReceive in class Fieldin - the stream to receive fromoverride - the IBuffer.TransportOverride to useGRS2RecordSerializationException - There was a problem in the deserializationField.extendReceive(java.io.DataInput, gr.uoa.di.madgik.grs.buffer.IBuffer.TransportOverride)public void extendDispose()
extendDispose in class FieldField.extendDispose()public void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
extendDeflate in class Fieldout - the stream to deflate toGRS2RecordSerializationException - There was a problem in the serializationField.extendDeflate(java.io.DataOutput)public void extendToXML(Document doc, Element element) throws GRS2RecordSerializationException
extendToXML in class FieldGRS2RecordSerializationExceptionpublic void extendSendToXML(Document doc, Element element, IBuffer.TransportOverride override) throws GRS2RecordSerializationException
extendSendToXML in class FieldGRS2RecordSerializationExceptionpublic void extendReceiveFromXML(Element element, IBuffer.TransportOverride override) throws GRS2RecordSerializationException
extendReceiveFromXML in class FieldGRS2RecordSerializationExceptionpublic void extendFromXML(Element element, boolean reset) throws GRS2RecordSerializationException
extendFromXML in class FieldGRS2RecordSerializationExceptionpublic void extendInflate(DataInput in, boolean reset) throws GRS2RecordSerializationException
Field extenders to inflate their internal informationextendInflate in class Fieldin - the stream to inflate fromreset - whether or not the inflated information needs to be reset to clear any indication of previous executed transfersGRS2RecordSerializationException - There was a problem in the deserializationField.extendInflate(java.io.DataInput, boolean)protected void extendMakeLocal()
extendMakeLocal in class FieldField.extendMakeLocal()Copyright © 2014. All Rights Reserved.