|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.android.Pipeline
public class Pipeline
A Pipeline represents a ‘collection’ of server connections (aka
Pipes). The Pipeline contains some simple management APIs to
create or remove Pipes objects.
| Constructor Summary | |
|---|---|
Pipeline(String baseURL)
An initializer method to instantiate the Pipeline, |
|
Pipeline(URL baseURL)
An initializer method to instantiate the Pipeline, |
|
Pipeline(URL baseURL,
PipeFactory pipeFactory)
An initializer method to instantiate the Pipeline, |
|
| Method Summary | |
|---|---|
Pipe |
get(String name)
Look up for a pipe object. |
LoaderPipe |
get(String name,
android.app.Activity activity)
Look up for a pipe object. |
LoaderPipe |
get(String name,
android.support.v4.app.FragmentActivity activity)
Look up for a pipe object. |
LoaderPipe |
get(String name,
android.app.Fragment fragment,
android.content.Context applicationContext)
Look up for a pipe object. |
LoaderPipe |
get(String name,
android.support.v4.app.Fragment fragment,
android.content.Context applicationContext)
Look up for a pipe object. |
Pipe |
pipe(Class klass)
|
Pipe |
pipe(Class klass,
PipeConfig config)
|
Pipe |
remove(String name)
Removes a pipe from the Pipeline object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pipeline(URL baseURL)
baseURL - the URL of the server
public Pipeline(URL baseURL,
PipeFactory pipeFactory)
baseURL - the URL of the serverpipeFactory - public Pipeline(String baseURL)
baseURL - the URL of the server
IllegalArgumentException - if baseURL is not a valid URL| Method Detail |
|---|
public Pipe pipe(Class klass)
public Pipe pipe(Class klass,
PipeConfig config)
public Pipe remove(String name)
name - the name of the actual pipe
public Pipe get(String name)
name - the name of the actual pipe
public LoaderPipe get(String name,
android.app.Activity activity)
name - the name of the actual pipeactivity - the activity whose lifecycle the loader will follow
public LoaderPipe get(String name,
android.app.Fragment fragment,
android.content.Context applicationContext)
name - the name of the actual pipefragment - the Fragment whose lifecycle the activity will followapplicationContext - the Context of the application.
public LoaderPipe get(String name,
android.support.v4.app.FragmentActivity activity)
name - the name of the actual pipeactivity - the activity whose lifecycle the loader will follow
public LoaderPipe get(String name,
android.support.v4.app.Fragment fragment,
android.content.Context applicationContext)
name - the name of the actual pipefragment - the Fragment whose lifecycle the activity will followapplicationContext - the Context of the application.
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||