org.ops4j.pax.web.extender.whiteboard.runtime
Class DefaultWelcomeFileMapping

java.lang.Object
  extended by org.ops4j.pax.web.extender.whiteboard.runtime.DefaultWelcomeFileMapping
All Implemented Interfaces:
WelcomeFileMapping

public class DefaultWelcomeFileMapping
extends java.lang.Object
implements WelcomeFileMapping

Default implementation of WelcomeFileMapping.

Since:
0.7.0
Author:
dsklyut

Constructor Summary
DefaultWelcomeFileMapping()
           
 
Method Summary
 java.lang.String getHttpContextId()
          Getter.
 java.lang.String[] getWelcomeFiles()
          Getter
 boolean isRedirect()
          Getter
 void setHttpContextId(java.lang.String httpContextId)
          Setter.
 void setRedirect(boolean redirect)
          Setter
 void setWelcomeFiles(java.lang.String[] welcomeFiles)
          Setter
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultWelcomeFileMapping

public DefaultWelcomeFileMapping()
Method Detail

getHttpContextId

public java.lang.String getHttpContextId()
Description copied from interface: WelcomeFileMapping
Getter.

Specified by:
getHttpContextId in interface WelcomeFileMapping
Returns:
id of the http context this jsp belongs to
See Also:
WelcomeFileMapping.getHttpContextId()

isRedirect

public boolean isRedirect()
Description copied from interface: WelcomeFileMapping
Getter

Specified by:
isRedirect in interface WelcomeFileMapping
Returns:
true if the client should be redirected to welcome file or false if forwarded
See Also:
WelcomeFileMapping.isRedirect()

getWelcomeFiles

public java.lang.String[] getWelcomeFiles()
Description copied from interface: WelcomeFileMapping
Getter

Specified by:
getWelcomeFiles in interface WelcomeFileMapping
Returns:
an array of welcome files paths. Paths must not start or end with "/"
See Also:
WelcomeFileMapping.getWelcomeFiles()

setHttpContextId

public void setHttpContextId(java.lang.String httpContextId)
Setter.

Parameters:
httpContextId - id of the http context these welcome pages belongs to

setWelcomeFiles

public void setWelcomeFiles(java.lang.String[] welcomeFiles)
Setter

Parameters:
welcomeFiles - welcome files

setRedirect

public void setRedirect(boolean redirect)
Setter

Parameters:
redirect - weather to redirect or forward.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.