- All Implemented Interfaces:
Broadcaster
,Listener
,Repeater
,Transceiver
,CreatedAt
,Modifiable
,ModifiedAt
,ByteSized
,Receiver
,Transmitter
,NamedObject
,StringSource
,NetworkResource
,Deletable
,Readable
,ReadableResource
,Resource
,Resourceful
,ResourcePathed
,UriIdentified
- Direct Known Subclasses:
SecureHttpGetResource
A resource accessed by HTTP GET at the given network location using the given access constraints.
- Author:
- jonathanl (shibo)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.telenav.kivakit.resource.Resource
Resource.Can, Resource.Converter
-
Constructor Summary
ConstructorsConstructorDescriptionHttpGetResource
(NetworkLocation location, NetworkAccessConstraints constraints) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.client.methods.HttpUriRequest
protected void
onInitialize
(org.apache.http.client.methods.HttpGet get) Method to allow super classes to add parameters / headers.Methods inherited from class com.telenav.kivakit.network.http.BaseHttpResource
asString, contentType, encoding, equals, hashCode, httpHeadRequestContentType, httpHeadRequestHeaderField, isRemote, location, newClient, onOpenForReading, responseHeader, status, toString
Methods inherited from class com.telenav.kivakit.network.core.BaseNetworkResource
asUri, asUrl
Methods inherited from class com.telenav.kivakit.resource.reading.BaseReadableResource
charset, charset, codec, codec, copyTo, delete, dematerialize, exists, materialized, openForReading, path
Methods inherited from class com.telenav.kivakit.core.messaging.repeaters.BaseRepeater
onMessage, onReceive
Methods inherited from class com.telenav.kivakit.core.messaging.broadcasters.Multicaster
addListener, clearListeners, debugClassContext, debugCodeContext, debugCodeContext, hasListeners, isDeaf, isTransmitting, listenerChain, listeners, listenerTree, messageSource, messageSource, objectName, removeListener, transmit, withoutTransmitting
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.telenav.kivakit.core.messaging.Broadcaster
addListener, addListener, clearListeners, copyListeners, hasListeners, listeners, messageSource, messageSource, onTransmit, onTransmitted, onTransmitting, removeListener, silence, transmit, transmit, transmitAll
Methods inherited from interface com.telenav.kivakit.core.value.count.ByteSized
isLargerThan, isSmallerThan
Methods inherited from interface com.telenav.kivakit.core.time.CreatedAt
age, createdAt, wasCreatedAfter, wasCreatedBefore
Methods inherited from interface com.telenav.kivakit.core.messaging.Listener
isDeaf, listenTo, listenTo, onMessage
Methods inherited from interface com.telenav.kivakit.core.time.Modifiable
lastModified
Methods inherited from interface com.telenav.kivakit.core.time.ModifiedAt
modifiedAt, wasChangedAfter, wasChangedBefore
Methods inherited from interface com.telenav.kivakit.interfaces.naming.NamedObject
hasSyntheticName, objectName, objectName
Methods inherited from interface com.telenav.kivakit.resource.reading.Readable
isReadable, openForReading, openForReading, sizeInBytes
Methods inherited from interface com.telenav.kivakit.resource.reading.ReadableResource
asStringResource, charset, copyTo, reader, reader, reader
Methods inherited from interface com.telenav.kivakit.interfaces.messaging.Receiver
isReceiving
Methods inherited from interface com.telenav.kivakit.core.messaging.Repeater
isRepeating, onReceive, receive
Methods inherited from interface com.telenav.kivakit.resource.Resource
asWritable, can, can, codec, dematerialize, endsWith, ensureExists, exists, hasParent, isEmpty, isLocal, isMaterializable, isOlderThan, isPackaged, isSame, materialized, parent, path, relativeTo, renameTo, resource, safeCopyTo, safeCopyTo, safeCopyTo, safeCopyTo
Methods inherited from interface com.telenav.kivakit.resource.ResourcePathed
asJavaFile, baseName, compoundExtension, extension, fileName, hasExtension, matches, uri, url
Methods inherited from interface com.telenav.kivakit.core.messaging.Transceiver
announce, debug, debugClassContext, debugCodeContext, debugCodeContext, fatal, fatal, glitch, glitch, glitch, glitch, halted, halted, ifDebug, illegalArgument, illegalState, illegalState, information, isDebugOn, narrate, problem, problem, problem, problem, problemIfNull, quibble, quibble, quibble, quibble, trace, trace, trace, trace, warning, warning, warning, warning
Methods inherited from interface com.telenav.kivakit.interfaces.messaging.Transmitter
isTransmitting, withoutTransmitting
-
Constructor Details
-
Method Details
-
newRequest
protected org.apache.http.client.methods.HttpUriRequest newRequest()- Specified by:
newRequest
in classBaseHttpResource
- Returns:
- The subclass' request object
-
onInitialize
protected void onInitialize(org.apache.http.client.methods.HttpGet get) Method to allow super classes to add parameters / headers.- Parameters:
get
- The get to be sent.
-